[Ajuda] Pegar pos e sу funcionar na pos
#5

tem de guardar a posiзгo de onde plantou dentro de uma variavel

Ex:
pawn Код:
new DrugsPos[MAX_PLAYERS][3];

no comando de plantar adiciona:

new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid,x,y,z);
DrugsPos[playerid][0] = x;
DrugsPos[playerid][1] = y;
DrugsPos[playerid][2] = z;

depois no de recolher

if(!IsPlayerInRangeOfPoint(playerid,3.0,DrugsPos[playerid][0],DrugsPos[playerid][1],DrugsPos[playerid][2]) return SendClientMessage(playerid,-1,"Posiзгo onde plantou errada!");
Reply


Messages In This Thread
Pegar pos e sу funcionar na pos - by maikons - 19.12.2013, 14:57
Re: Pegar pos e sу funcionar na pos - by maikons - 20.12.2013, 10:27
Re: Pegar pos e sу funcionar na pos - by maikons - 20.12.2013, 22:26
Re: Pegar pos e sу funcionar na pos - by maikons - 22.12.2013, 15:31
Re: Pegar pos e sу funcionar na pos - by StreetGT - 22.12.2013, 16:56

Forum Jump:


Users browsing this thread: 1 Guest(s)