Gates
#1

How can i make the /opengate command works only for lv3 admin +

if (strcmp("/opengate", cmdtext, true) == 0)
{
if(IsPlayerAdmin(playerid))
{
MoveObject(SFPDgate,-1571.80, 654.16, 6.08, 1.1);
new string[256];
new name[128];
GetPlayerName(playerid,name,12;
format(string, sizeof(string), "%s has opened the SFPD gate!",name);
SendClientMessageToAll(0x0AFF0AAA, string);
}
else
{
return SendClientMessage(playerid,0xFF0000AA,"/opengate is an RCON command."); //If not RCON
}
GameTextForPlayer(playerid, "~G~gate opening...", 3000, 5);
return 1;
}
Reply


Messages In This Thread
Gates - by G*Mafia - 25.03.2011, 10:56
Re: Gates - by Ozz - 25.03.2011, 11:06
Re: Gates - by Davz*|*Criss - 25.03.2011, 12:50
Re: Gates - by Stigg - 25.03.2011, 12:54
Re: Gates - by G*Mafia - 25.03.2011, 13:22
Re: Gates - by Stigg - 25.03.2011, 13:24
Re: Gates - by G*Mafia - 25.03.2011, 13:27
Re: Gates - by Stigg - 25.03.2011, 13:30
Re: Gates - by G*Mafia - 25.03.2011, 13:31
Re: Gates - by Stigg - 25.03.2011, 13:32

Forum Jump:


Users browsing this thread: 7 Guest(s)