Ofc.. ur setting the char pos not the vehicle pos.
Код:
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;
}
BTW: use [pawn] tags instead of [code] Makes it easier to read.
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;
}