25.03.2011, 13:24
This will work with Ladmin.
You'll have to change your command to dcmd, Ladmin uses dcmd if i recall correctly.
pawn Код:
if (strcmp("/opengate", cmdtext, true) == 0)
{
if(PlayerInfo[playerid][Level] >= 3)//Ladmin level 3 and above
{
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);
GameTextForPlayer(playerid, "~G~gate opening...", 3000, 5);
return 1;
}
}