19.10.2009, 17:51
Hi guys!
I have this script:
But I don't think it will work... Is there something wrong that I am doing... I think I might have the return 1; in the wrong place... I don't know, this is my first 'written by myself' script ...
I have this script:
pawn Код:
if(strcmp(cmdtext, "/areagateclose", true) == 0)
{
if(IsPlayerLAdmin(playerid))
{
new pName[MAX_PLAYER_NAME];
new string[48];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s has closed the Area 51 Gate", pName);
SendClientMessageToAll(COLOR_RED, string);
MoveObject(aGate2, 96.669350, 1925.953735, 18.855873, 4);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED,"You are not an admin");
return 1;
}
}
return 0;