28.12.2013, 05:26
Hey guys
I wanted to make a Helper Rank today.
But im not sure how to save it into a Dini file..
My code:
Help would be great!
I wanted to make a Helper Rank today.
But im not sure how to save it into a Dini file..
My code:
Код:
new helper[MAX_PLAYERS];
CMD:sethelper(playerid, params[])
{
if(!IsPlayerAdmin(playerid))
return 0;
new giveplayerid;
if(sscanf(params, "u", giveplayerid))
return SendClientMessage(playerid, red, "Usage: /sethelper [ID]");
helper[giveplayerid] = 1;
new string[128];
new pName[24], aName[24];
GetPlayerName(playerid, aName, 24);
GetPlayerName(giveplayerid, pName, 24);
format(string, sizeof(string), "You have made %s a helper", pName);
SendClientMessage(playerid, blue, string);
format(string, sizeof(string), "SERVER: Administrator %s has made you a helper", aName);
SendClientMessage(giveplayerid, blue, string);
return 1;
}


