28.11.2010, 11:40
Top of code:
OnPlayerConnect
OnPlayerCommandText
pawn Код:
new usedhelp[MAX_PLAYERS] = 0;
pawn Код:
usedhelp[playerid] = 0;
pawn Код:
if(!strcmp(cmdtext, "/help"))
{
if(usedhelp[playerid] == 1) return SendClientMessage(playerid,COLOR_yourcolourhere,"You are NOT allowed to use this command!");
SendClientMessage(playerid,WHITE,"--------HELP-----------------------");
SendClientMessage(playerid,GREEN,"This is a Team Death Match gameplay. You are in a fight between Vietnam and USA, have Fun. We now have killstreaks.");
SendClientMessage(playerid,WHITE,"--------HELP-----------------------");
usedhelp[playerid] = 1;
return 1;
}