Hey help plz!
#10

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;
}
Reply


Messages In This Thread
Hey help plz! - by Mr.Jvxmc - 26.10.2010, 15:11
Re: Hey help plz! - by Cameltoe - 26.10.2010, 15:13
Re: Hey help plz! - by 0ne - 26.10.2010, 15:14
Re: Hey help plz! - by Mr.Jvxmc - 26.10.2010, 15:20
Re: Hey help plz! - by Andrus - 26.10.2010, 15:22
Re: Hey help plz! - by Cameltoe - 26.10.2010, 15:24
Re: Hey help plz! - by Mr.Jvxmc - 26.10.2010, 15:33
Re: Hey help plz! - by Cameltoe - 26.10.2010, 15:36
Re: Hey help plz! - by Mr.Jvxmc - 26.10.2010, 15:42
Re: Hey help plz! - by Cameltoe - 26.10.2010, 15:57

Forum Jump:


Users browsing this thread: 4 Guest(s)