whats wrong
#3

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.
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;
}
Reply


Messages In This Thread
whats wrong - by BoU3A - 11.01.2015, 08:35
Re: whats wrong - by Sawalha - 11.01.2015, 08:37
Re: whats wrong - by Threshold - 11.01.2015, 08:42

Forum Jump:


Users browsing this thread: 1 Guest(s)