how would i do this
#1

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!
Reply
#2

Код:
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.
Reply
#3

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 >_<
Reply
#4

double post - sorry


dint work because my code already has

Код:
{
else
}
is their any other way? thanks
Reply
#5

Код:
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.");
}
Reply
#6

Quote:
Originally Posted by hadzx
Посмотреть сообщение
double post - sorry


dint work because my code already has

Код:
{
else
}
is their any other way? thanks
Paste your command's code here.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)