Autorespawn vehicles and respawn at a command - question
#7

So... I still get that message... - Firstly - "All cars spawned by /v are removed." and Secondly - "Command not exist!" - only this command not work, each other command works fine...

OnPlayerCommandPerformed:
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success)
    {
        SendClientMessage(playerid, Kolor_Administratora, ""MAP_NAME": Command not exist!");
    }
    else // this is for eye, when I write /eye 1 - and I'm logged in on a rcon - I see which command wrote a player
    {
        int String[255];
        format(String, sizeof(String), " [EYE] %s (ID: %d) -> %s", Player[playerid][NameOfPlayer], playerid, cmdtext);
        foreach(Player, PlayerId)
        if(PlayerId != playerid)
        if(IsPlayerAdmin(PlayerId) && Player[PlayerId][Eye])
        SendClientMessage(PlayerId, Kolor_Administratora, String);
    }

    return true;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)