Quote:
Originally Posted by ALiScripter
^^ above post (3385)
PHP код:
// indent the code yourself - just an example.
new targetname[24], finee, filestring[79];
if(sscanf(params, "s[24]d", targetname, finee)) return SendClientMessage(playerid, -1, "{C0C0C0}USAGE: /offlinefine [Player Name] [fine]");
format(filestring, sizeof(filestring), "location/%s.ini", targetname);
if(!fexist(filestring)) return SendClientMessage(playerid, -1, "The player name you have chosen was not found in our system.");
new INI:File = INI_Open(filestring);
// set player tag
// take fine and put the fine value
INI_Close(File);
// done!
You can also save the offline fine string and let the player know when they connect.
|
how to set tag mate? i really have no idea about it...