09.01.2014, 12:59
I'd do this:
Код:
forward Life(playerid); public Life(playerid) { if(pInfo[playerid][pLife] == 1) { if(pInfo[playerid][pAdmin] == 0) return SendClientMessage(playerid, -1, "You are not an Admin!"); else { SendClientMessage(playerid, COLOR_WHITE, "You cant have 1 life point without asking the owner!"); TogglePlayerControllable(playerid, 1); } } else { SendClientMessage(playerid, COLOR_WHITE, "Loaded! you can play now."); } return 1; }