how would i do this - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how would i do this (
/showthread.php?tid=228972)
how would i do this -
hadzx - 20.02.2011
how would i make a test command it says "ur not a rcon admin" if ur not logged into rcon but if your logged into it - it says "your logged into rcon" i need it to test stuff - thanks!
Re: how would i do this -
viKKmaN - 20.02.2011
Код:
if(IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, 0xFFFFFFAA, "You are logged in as RCON admin.");
}
else
{
SendClientMessage(playerid, 0xFFFFFFAA, "You are not logged in as RCON admin.");
}
Insert this between your command's brackets.
Re: how would i do this -
hadzx - 20.02.2011
Quote:
Originally Posted by viKKmaN
Код:
if(IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, 0xFFFFFFAA, "You are logged in as RCON admin.");
}
else
{
SendClientMessage(playerid, 0xFFFFFFAA, "You are not logged in as RCON admin.");
}
Insert this between your command's brackets.
|
thanks why dint i think of this >_<
Re: how would i do this -
hadzx - 20.02.2011
double post - sorry
dint work because my code already has
is their any other way? thanks
Re: how would i do this -
MahmutBey - 20.02.2011
Код:
if(IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, 0xFFFFFFAA, "You are logged in as RCON admin.");
}
if(!IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, 0xFFFFFFAA, "You are not logged in as RCON admin.");
}
Re: how would i do this -
viKKmaN - 20.02.2011
Quote:
Originally Posted by hadzx
double post - sorry
dint work because my code already has
is their any other way? thanks
|
Paste your command's code here.