20.03.2013, 13:07
pawn Код:
CMD:ir(playerid, params[])
{
new ID;
if(sscanf(params, "u", ID)) return SendClientMessage(playerid, -1, "[ Erro ] /ir [Id]");
if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, -1, "[ Erro ] Id Invalido!");
new Float:x, Float:y, Float:z;
GetPlayerPos(ID, x, y, z);
SetPlayerPos(playerid, x, y, z);
SetPlayerInterior(playerid, GetPlayerInterior(ID));
if(IsPlayerInAnyVehicle(playerid))
{
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID, x + 1, y + 1, z);
PutPlayerInVehicle(playerid, VehicleID, 0);
}
return 1;
}