11.02.2012, 10:45
(
Последний раз редактировалось boyan96; 13.02.2012 в 07:05.
)
PHP код:
if(strcmp(cmd, "/swimmingevent", true) == 0)
{
if(IsPlayerConnected(playerid) && (swimmingevent == 0) && IsPlayerAdmin(playerid))
{
swimmingevent = 1;
BroadCast(COLOR_GREEN, " Swimming aviable(/joinswimmingevent)!");
}
else if(IsPlayerConnected(playerid) && (swimmingevent == 1) && IsPlayerAdmin(playerid))
{
swimmingevent = 0;
BroadCast(COLOR_GREEN, " Swimming event disable.");
}
return 1;
}
PHP код:
if(PlayerInfo[playerid][pAdmin] < 1337)
How i can make when an admin write /swimmingevent to show to all player anannouncement to join in the event with command (the command is /joinevent)