Small Code <-- Please
#1

how to make those for rcon admin only ? and show message you are not Admin !

pawn Код:
CMD:owner(playerid, params[])
{
    PlayerInfo[playerid][pMainOwner] = 100;
    SendClientMessageEx(playerid, COLOR_GREY, "YOU ARE SERVER OWNER NOW GRATZ");
    return 1;
}

CMD:MakeMeAdmin(playerid, params[])
{
    PlayerInfo[playerid][pAdmin] = 99999;
    SendClientMessageEx(playerid, COLOR_GREY, "YOU ARE ADMIN LEVEL 99999 GRATZ");
    return 1;
}
second thing , in linex i have [install screen for samp server]
how to show this screen and send cmds in it like the windows version ?
Reply
#2

Код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR, "You are not an admin.");
Reply
#3

pawn Код:
if( !IsPlayerAdmin( playerid ) ) return SendClientMessage( playerid, -1, "You are not an Admin!" );
// code.. (the player is RCON admin)
I didn't understand the second one.
Reply
#4

hey why the 2nd cmd says unknown cmd in game ?


Edit : is it right code to give admin / mainowner in game ? or i made misstakes

also ,, nvm about second question
Reply
#5

Do you return 0 in any command? If yes, change it to 1.

Do you use only CMD for the commands in that script? If not, it may confict with the rest.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)