11.01.2015, 08:42
Do not make another thread for the exact same code in your previous thread... it's just spamming and gets annoying.
https://sampforum.blast.hk/showthread.php?tid=556634
I see that you completely changed the code that I gave you, but that's okay... maybe you won't do it this time.
https://sampforum.blast.hk/showthread.php?tid=556634
I see that you completely changed the code that I gave you, but that's okay... maybe you won't do it this time.
pawn Код:
CMD:aj(playerid, params[])
{
if(pdata[playerid][Adminstator] < 2) return SendClientMessage(playerid, Red, "Command not found! Type /cmds");
new TargetID, reason[65];
if(sscanf(params, "uS( )[65]", TargetID, reason)) return SendClientMessage(playerid, Red, "Eject player from vehicle: /aj <id> <reason>");
if(!IsPlayerConnected(TargetID)) return SendClientMessage(playerid, Red, "Player is not connected");
if(!IsPlayerInAnyVehicle(TargetID)) return SendClientMessage(playerid, Red, "Player is not in vehicle");
new name[MAX_PLAYER_NAME], str[128];
GetPlayerName(playerid, name, sizeof(name));
format(str, sizeof(str), "%s %s ejected you: %s", AdminLevel(playerid), name, reason);
SendClientMessage(TargetID, Red, str);
RemovePlayerFromVehicle(TargetID);
return 1;
}