10.04.2011, 22:16
Hey guys currently i have a command called /call hydra that when used it will CreateVehicle and place you inside it. But i'm struggling to work out how to stop it respawning....
E.g. if a player /call hydra and for example crashes into a building that vehicle is gone and will not reappear on the Carrier.
Here is the command code at the moment.
E.g. if a player /call hydra and for example crashes into a building that vehicle is gone and will not reappear on the Carrier.
Here is the command code at the moment.
pawn Код:
if(strcmp(cmdtext, "/call hydra", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 7, 2728.0461,-2302.7786,16.5892))
{
GetPlayerPos(playerid,X,Y,Z);
PutPlayerInVehicle(playerid, CreateVehicle(520,X,Y,Z,0,-1,-1,-1),0);
return 1;
}
}