16.04.2010, 23:49
pawn Code:
dcmd_pointall(playerid,params[])
{
#pragma unused params
if(AccData[playerid][Level]>=4)
{
for(new x=0; x<MAX_PLAYERS; x++)
{
Points[x]++;
new po[MAX_PLAYER_NAME+45];
format(po,sizeof(po),"* Admin %s (ID:%d) gave everyone a point!",PlayerName(playerid),playerid);
SendClientMessageToAll(COLOR_LIGHTGREEN,po);
GameTextForAll("~g~Free points~n~for everyone!",3000,5);
return 1;
}
}
return 1;
}
![](http://www.kubasfunserver.com/Other/2/samppoints.png)
No errors or warning, but noone gets the points
![undecided](images/smilies/neutral.gif)