13.06.2012, 14:54
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/helpme", cmdtext, true, 5) == 0) { SendClientMessage(playerid, COLOR_BLUE, "[INFO]This help command is still in BETA"); SendClientMessage(playerid, COLOR_ORANGE, "[INFO]Enjoy the tutorial!"); SendClientMessage(playerid, COLOR_ORANGE, "[INFO]/Heal - Heals you. /Kill - Performs suicide. /Getspas - Gets a spas12"); return 1; } if (strcmp("/healme", cmdtext, true, 5) == 0) { SetPlayerHealth(playerid, 100); SendClientMessage(playerid, COLOR_YELLOW, "(INFO) You have been healed!(This heal command is still in BETA!)"); return 1; } if (strcmp("/getspas", cmdtext, true, 10) == 0) { GivePlayerWeapon(playerid, 27, 1500); //Give playerid SPAS12 with 1500 ammo SendClientMessage(playerid, COLOR_GREEN, "Enjoy the gun honey, x Mom."); return 1; } return 0; }