18.02.2012, 18:22
pawn Код:
CMD:seat3(playerid, params[])
{
new vehicleid;
new id;
new giveplayerid;
if(GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 282 || GetPlayerSkin(playerid) == 281 || GetPlayerSkin(playerid) == 283 || GetPlayerSkin(playerid) == 288)
if (sscanf(params, "u", id)) SendClientMessage(playerid, COLOR_LIGHTBLUE, "Usage: /Seat3 [ID]");
else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "[INFO]Player not found");
else
{
SendClientMessage(playerid, COLOR_GOLD, "[INFO]Player Loaded succesfully");
PutPlayerInVehicle(id,vehicleid,3);
TogglePlayerControllable(id, 0);
SendClientMessage(id, COLOR_GOLD,"[INFO]You have been loaded in a Police Vehicle by a APSO Officer");
SetPlayerColor(id,COLOR_LIGHTBLUE);
ResetPlayerWeapons(id);
}
return 1;
}