03.02.2012, 19:52
Hey all!
I am makin' a "warn-command" in ZCMD, but don't really know how to continue, and also don't know if it's right until now, I am a newbie!
For example, I dunno how t complete this string for the reason and also, how to set the limit in the loop to 3 warnings, cause after the 3rd the player should get kicked!!
I am makin' a "warn-command" in ZCMD, but don't really know how to continue, and also don't know if it's right until now, I am a newbie!

PHP код:
CMD:warn(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 3)
{
for(new i = 0; i < MAX_WARNINGS; i++)
new playername, string[128];
new adminname, string[128];
new reason, string[128];
GetPlayername(playerid, playername, adminname, sizeof(playername,adminname));
format(string,sizeof(string), "Administrator "%s" has given "%s" a warning: