paveldaa 0 Odesláno: 27. Listopad, 2011 Share Odesláno: 27. Listopad, 2011 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 More sharing options...
Nikes 9 Odesláno: 27. Listopad, 2011 Share Odesláno: 27. Listopad, 2011 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 More sharing options...
paveldaa 0 Odesláno: 27. Listopad, 2011 Share Odesláno: 27. Listopad, 2011 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 More sharing options...
paveldaa 0 Odesláno: 29. Listopad, 2011 Share Odesláno: 29. Listopad, 2011 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 More sharing options...
Arthom 6 Odesláno: 30. Listopad, 2011 Share Odesláno: 30. Listopad, 2011 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 More sharing options...
paveldaa 0 Odesláno: 30. Listopad, 2011 Share Odesláno: 30. Listopad, 2011 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 !! 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 More sharing options...
Arthom 6 Odesláno: 1. Prosinec, 2011 Share Odesláno: 1. Prosinec, 2011 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 More sharing options...
paveldaa 0 Odesláno: 1. Prosinec, 2011 Share Odesláno: 1. Prosinec, 2011 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 More sharing options...
Petr 44 Odesláno: 1. Prosinec, 2011 Share Odesláno: 1. Prosinec, 2011 Vůbec ho neposlouchej, ani neví o čem mluví. Tip pro tebe: Zmenši rádius z 15 na 1. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now