19.02.2012, 18:19
How i can make this command can you it from one user (maybe it will need his nickname in the server)
PHP код:
if(strcmp(cmd, "/boxevent", true) == 0)
{
if(IsPlayerConnected(playerid) && (boxevent == 0))
{
boxevent = 1;
BroadCast(COLOR_WHITE, " write(/joinboxevent)!");
}
else if(IsPlayerConnected(playerid) && (boxevent == 1))
{
boxevent = 0;
BroadCast(COLOR_GREEN, " deactive.");
}
return 1;
}