17.06.2014, 09:37
hello all,
I need some help for make cmd /helpers,who can help me?
I need some help for make cmd /helpers,who can help me?
CMD:helpers(playerid, params[])
{
new string[64], name[MAX_PLAYER_NAME];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pHelpers] >= 1) //just example, change this based on your enum
{
GetPlayerName(i, name, MAX_PLAYER_NAME);
format(string, sizeof(string), "Helper %s", name);
SendClientMessage(playerid, -1, string);
}
}
}
return 1;
}