19.08.2009, 12:17
pawn Код:
if (strcmp("/teleport",cmdtext,true)==0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(vehicleid,X, Y,Z);
}
else {
SetPlayerPos(playerid,X,Y,Z);
}
return 1;
}