18.01.2015, 20:05
PHP код:
new bool:help[MAX_PLAYERS];
new bool:helped[MAX_PLAYERS];
enum rep
{
help
};
new info[MAX_PLAYERS][rep];
stock help(nezo)
{
help[playerid] == true;
helped[nezo] == true;
SendClientMessage(playerid, -1, "Thank you for helping");
info[playerid][help]++;
return 1;
}
forward OnPlayerHelp(playerid, nezo);
public OnPlayerHelp(playerid, nezo);
{
if(help[playerid] == false && helped[nezo] == false) return SendClientMessage(playerid, -1, "Please Help I'll rep");
help(nezo);
return 1;
}