11.05.2015, 00:32
(
Последний раз редактировалось Abagail; 11.05.2015 в 02:01.
)
pawn Код:
CMD:gv(playerid, params[])
{
new id;
if(PlayerAcc[playerid][Log] == 0) return SendClientMessage(playerid, COLOR_RED, "Error: You are not logged in!");
if(PlayerAcc[playerid][Admin] >= 3)
{
if(sscanf(params, "u", id)) return SendClientMessage(playerid, COLOR_RED, "Gv: /gv (id)");
if(id == INVALID_PLAYER_ID) return ErrorMessages(playerid, 2);
if(id == playerid) return ErrorMessages(playerid, 4);
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
if(id == INVALID_VEHICLE_ID) return SendClientMessage(playerid, COLOR_RED, "Gv: That vehicle doesn't exist");
PutPlayerInVehicle(playerid, id, 0);
}
else return SendClientMessage(playerid, COLOR_GREY, "Gv: You must be on foot");
}
return 1;
}