02.03.2011, 02:23
Quote:
OK but does it work for the people that are using normal commands?
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/heal", cmdtext, true, 10) == 0) { if(GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid, COLOR_RACE, "You don't have enough $ to heal."); GivePlayerMoney(playerid, -500); SendClientMessage(playerid, COLOR_RACE, "Healed for 500$."); SetPlayerHealth(playerid, 100); return 1; } return SendClientMesage(playerid, COLOR_ORANGE, "Command does not exist please use /help"); } |