31.07.2011, 10:15
Hi!
I've created a command, but not in CMD! When a normal player types /help, the information should be shown!
I've created a command, but not in CMD! When a normal player types /help, the information should be shown!
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext[0], "/help"))
{
SendClientMessage(playerid, COLOR_RED, "Hi there! Welcome to Gangwars and Ganglife at Night ");
SendClientMessage(playerid, COLOR_RED, "The most gang-banging in Los Angeles are happening at night!");
SendClientMessage(playerid, COLOR_RED, "Now it's your turn! Choose your favourite gang and show, that you and your homies are the best!");
SendClientMessage(playerid, COLOR_RED, "Remember, you can't betray your gang!");
SendClientMessage(playerid, COLOR_RED, "Use every situation to attack your enemies! Your target is, to take over whole Los Santos with your gang!");
return 1;
}
return 0;
}



