Small Code <-- Please - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Small Code <-- Please (
/showthread.php?tid=475913)
Small Code <-- Please -
Joe_Goro - 15.11.2013
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 ?
Re: Small Code <-- Please -
dominik523 - 15.11.2013
Код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR, "You are not an admin.");
Re: Small Code <-- Please -
Konstantinos - 15.11.2013
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.
Re: Small Code <-- Please -
Joe_Goro - 15.11.2013
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
Re: Small Code <-- Please -
Konstantinos - 15.11.2013
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.