12.09.2009, 12:44
I got this :
When i do /help it say the help text but when i do /rules it say the help text... why?
sorry for my english!
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
if(strcmp(cmd, "/help", true) == 0) {
SendClientMessage(playerid, 0x33AA33AA, "•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••");
SendClientMessage(playerid, 0xFFFF00AA, "JOBS: /plane /taxidriver /busdriver");
SendClientMessage(playerid, 0xFFFF00AA, "CMDS: /pm /sendmoney /help");
SendClientMessage(playerid, 0x33AA33AA, "•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••");
return 1;
}
if(strcmp(cmd, "/rules", true) == 0) {
SendClientMessage(playerid, 0x33AA33AA, "•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••");
SendClientMessage(playerid, 0xFFFF00AA, "Welcome to Orizon RolePlay And Thank You for reading our Rules!");
SendClientMessage(playerid, 0xFFFF00AA, "1. DeathMatch And DriveBy : ");
SendClientMessage(playerid, 0xFFFF00AA, " If you are NOT a Hitman, you are not allowed to kill ");
SendClientMessage(playerid, 0xFFFF00AA, " peoples for no reasons. DriveBy are not allowed. If ");
SendClientMessage(playerid, 0xFFFF00AA, " someone report you for DriveBy Kills, You will be");
SendClientMessage(playerid, 0xFFFF00AA, " kicked from the server and your name will be added");
SendClientMessage(playerid, 0xFFFF00AA, " in our Black List.");
SendClientMessage(playerid, 0x33AA33AA, "•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••");
return 1;
}
return 1;
}
sorry for my english!