24.08.2010, 04:40
pawn Код:
if(strcmp("/x", cmdtext, true, 10) == 0)
{
if (!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xAA3333AA,"You are not in car!");
new VIDs, Float:X, Float:Y, Float:Z, Float:Angle;
GetPlayerPos(playerid, X, Y, Z);
new VIDs = GetPlayerVIDs(playerid);
GetVehicleZAngle(VIDs, Angle);
SetVehiclePos(VIDs, X, Y, Z);
SetVehicleZAngle(VIDs, Angle);
SendClientMessage(playerid, 0x33AA33AA,"Vc desvirou seu carro");
return 1;
}