27.06.2011, 23:21
I keep getting errors but i dont see anything wrong with it.
Код:
public OnPlayerCommandText(playerid, cmdtext[]) (strcmp("/creds", cmdtext, true, 10) == 0) { SendClientMessage(playerid, 0x000000, "Pilotblaze1/Ryder3939. And **********.com"); return 1; } if (strcmp("/heal", cmdtext, true, 10) == 0) { SetPlayerHealth(playerid, 100) SendClientMessage(playerid, 0x000000, "You have been healed! You health has been restored to 100"); return 1; } if (strcmp("/kill", cmdtext, true, 10) == 0) { SetPlayerHealth(playerid, 0); SendClientMessageToAll(0x000000, "Someone has commited suicide! Check the right side of your screen to see who it was."); SendClientMessage(playerid, 0x000000, "See you in heaven! Oh i just remembered,you commited suicide, you aint goin."); return 1; } if (strcmp("/pm", cmdtext, true, 10) == 0) { SendClientMessage(playerid, COLOR_RED, "Unfortunately, I do not know how to script /pm yet, So your assed out."); return 1; } return 0; }