26.10.2010, 15:57
Ofc.. ur setting the char pos not the vehicle pos.
BTW: use [pawn] tags instead of [code] Makes it easier to read.
Код:
if(strcmp(cmd, "/helpmeup", true) == 0) { if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0x00FF00, "You have to be inside an vehicle to use this..."); new Float:x,Float:y,Float:z; GetVehiclePos(GetPlayerVehicleID(playerid),x,y,z); SetVehiclePos(GetPlayerVehicleID(playerid),x,y,z+5); SendClientMessage(playerid, 0x00FF00, "You shouldn't be stuck now."); return 1; }
pawn Код:
if(strcmp(cmd, "/helpmeup", true) == 0)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0x00FF00, "You have to be inside an vehicle to use this...");
new Float:x,Float:y,Float:z;
GetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);
SetVehiclePos(GetPlayerVehicleID(playerid),x,y,z+5);
SendClientMessage(playerid, 0x00FF00, "You shouldn't be stuck now.");
return 1;
}