24.04.2012, 15:04
i have create a newbie chat and command /nonewbie but i can't create /togn... it's not work
new gNewbie[MAX_PLAYERS];
gNewbie[playerid] = 0; at onplayerconnect
gNewbie[playerid] = 1; at setplayerspawn
gNewbie[i] = 0; at setplayerunjail
and command
and if you can help me with "/nmute" for mute player only on newbie
new gNewbie[MAX_PLAYERS];
gNewbie[playerid] = 0; at onplayerconnect
gNewbie[playerid] = 1; at setplayerspawn
gNewbie[i] = 0; at setplayerunjail
and command
Code:
} if(strcmp(cmd, "/togn", true) == 0) { if(IsPlayerConnected(playerid)) { if (!gNewbie[playerid]) { gNewbie[playerid] = 1; SendClientMessage(playerid, COLOR_GRAD2, " Newbie chat channel Disabled !"); } else if (gNewbie[playerid]) { gNewbie[playerid] = 0; SendClientMessage(playerid, COLOR_GRAD2, " Newbie chat channel Enabled !"); } } return 1;