Jump to content

Banka


Guest CHEF

Recommended Posts

Jo ale když budeš chtít příkaz používat všude tak to smaž todle..

if (IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) ||
IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) ||
IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15))

 

 

jj ,ale to nehci to by bylo k prdu kdyby se to dalo používat všude,mam dotaz mam dany v pawno mapicon na tu banku ale zobrazí se mi jenom ta poslední,jak to mam spravit ,upravit ???

SetPlayerMapIcon(playerid, 52, -1519.3204,2610.3164,55.8359, 52, 0, MAPICON_LOCAL_CHECKPOINT);

SetPlayerMapIcon(playerid, 52, -243.3448,2710.1506,62.6875, 52, 0, MAPICON_LOCAL_CHECKPOINT);

SetPlayerMapIcon(playerid, 52, 2193.4268,2002.1923,12.2894, 52, 0, MAPICON_LOCAL_CHECKPOINT);

 

 

 

odsud jsem to dál http://wiki.sa-mp.com/wiki/SetPlayerMapIcon

Link to comment
Share on other sites

  • Replies 133
  • Created
  • Last Reply

Top Posters In This Topic

SetPlayerMapIcon(playerid, 1, -1519.3204,2610.3164,55.8359, 52, 0, MAPICON_LOCAL_CHECKPOINT);

SetPlayerMapIcon(playerid, 2, -243.3448,2710.1506,62.6875, 52, 0, MAPICON_LOCAL_CHECKPOINT);

SetPlayerMapIcon(playerid, 3, 2193.4268,2002.1923,12.2894, 52, 0, MAPICON_LOCAL_CHECKPOINT);

Link to comment
Share on other sites

SetPlayerMapIcon(playerid, 1, -1519.3204,2610.3164,55.8359, 52, 0, MAPICON_LOCAL_CHECKPOINT);

SetPlayerMapIcon(playerid, 2, -243.3448,2710.1506,62.6875, 52, 0, MAPICON_LOCAL_CHECKPOINT);

SetPlayerMapIcon(playerid, 3, 2193.4268,2002.1923,12.2894, 52, 0, MAPICON_LOCAL_CHECKPOINT);

 

 

díky moc

Link to comment
Share on other sites

Dobrý funguje to všechno,ale mam problém jak mam udělat aby mi ty příkazy fungovaly jenom na tý pozici kterou mam danou ?? tědka mě to funguje všude :-( ja chci aby to to fungovalo na těhletěch pozicích

if (IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) ||
IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) ||
IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15))

 

 

 

tady je celý jeden dcm

dcmd_stav(playerid, params[])

{

#pragma unused params

if (IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) ||

IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) ||

IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15))

{ //funguje jenom v danych souradnicich (napr pickupu)

new string[256];

format(string, sizeof(string), "Zůstatek na vašem účtu činí: %d.", bank[playerid]);

SendClientMessage(playerid, ZLUTA, string);

}

return true;

}

 

 

Poraďtě plís

Link to comment
Share on other sites

Dobrý funguje to všechno,ale mam problém jak mam udělat aby mi ty příkazy fungovaly jenom na tý pozici kterou mam danou ?? tědka mě to funguje všude :-( ja chci aby to to fungovalo na těhletěch pozicích
if (IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) ||
IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) ||
IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15))

 

 

 

tady je celý jeden dcm

dcmd_stav(playerid, params[])

{

#pragma unused params

if (IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) ||

IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) ||

IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15))

{ //funguje jenom v danych souradnicich (napr pickupu)

new string[256];

format(string, sizeof(string), "Zůstatek na vašem účtu činí: %d.", bank[playerid]);

SendClientMessage(playerid, ZLUTA, string);

}

return true;

}

 

 

Poraďtě plís

ten new string[256];

nemalo by tam byt new string[100]; ?

Link to comment
Share on other sites

Dobrý funguje to všechno,ale mam problém jak mam udělat aby mi ty příkazy fungovaly jenom na tý pozici kterou mam danou ?? tědka mě to funguje všude :-( ja chci aby to to fungovalo na těhletěch pozicích
if (IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) ||
IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) ||
IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15))

 

 

 

tady je celý jeden dcm

dcmd_stav(playerid, params[])

{

#pragma unused params

if (IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) ||

IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) ||

IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15))

{ //funguje jenom v danych souradnicich (napr pickupu)

new string[256];

format(string, sizeof(string), "Zůstatek na vašem účtu činí: %d.", bank[playerid]);

SendClientMessage(playerid, ZLUTA, string);

}

return true;

}

 

 

Poraďtě plís

ten new string[256];

nemalo by tam byt new string[100]; ?

 

 

omg to je snad jedno jaký tam je číslo :d !! tady maj 256 tak ho tam mám daný,spíš jak mam udělat abych musel být na tý pozici abych mohl ukládat,kontrolovat a vybýrat peníze ??

dcmd_vybrat(playerid, params[])

{

if (IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) ||

IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) ||

IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15))

{ //funguje jenom v danych souradnicich (napr pickupu)

if(!strlen(params)) return SendClientMessage(playerid, ZLUTA, "[NAPIŠ]: /vybrat [Částka]");

new castka2 = strval(params);

if(castka2 > bank[playerid]) return SendClientMessage(playerid, CERVENA, "Špatná částka!");

if(castka2 <= bank[playerid])

{

bank[playerid] -= castka2;

GivePlayerMoney(playerid, castka2);

new string[256];

format(string, sizeof(string), "Vybral jsi: %d, zůstatek na účtu: %d.", castka2, bank[playerid]);

SendClientMessage(playerid, ZLUTA, string);

}

}

return true;

}

?? takhle to mám,ale funguje mi to i když nejsem na tom místě který mam označený,prostě všude,ale ja to tak nechci,ja to chci aby to fungovalo na těhlech pozicích

if (IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) ||
IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) ||
IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15))

Link to comment
Share on other sites

mg ja nwm teraz skus si dat niekde

bank[playerid] != castka2 return SendClientMessage(playerid,farba,"Nesi pri banke");//ci ako

uz sa nepametam dlho som nepawnil neako asi tak to ma byt

Link to comment
Share on other sites

mg ja nwm teraz skus si dat niekde
bank[playerid] != castka2 return SendClientMessage(playerid,farba,"Nesi pri banke");//ci ako

uz sa nepametam dlho som nepawnil neako asi tak to ma byt

)

 

 

mno ale kam to mam dát ? :roll:

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...