[Help] How can i make this thing?
#5

pawn Код:
CMD:activateaccount(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,red,"You need to be admin to use these command");//These is just for rcon admin so you edit it to your system
    if(sscanf(params, "s", params)) return SendClientMessage(playerid,red,"You need to enter user nick");

    new file[128];
    format(file,sizeof(file),"cServer/kasutajad/%.ini",params); // edit  .ini to your extansion
   
    if(!dini_Exists(file)) return SendClientMessage(playerid,red,"That user does not exist");
    dini_IntSet(file,"AccountActivated", 1);//I guess these is right you dont need to edit it
    return 1;
}
I used zcmd+sscanf but you can edit it to whatever you want cos you know how is it works now
And i must note that these is just if player is not connected !
Reply


Messages In This Thread
[Help] how to make cmd /activate [naae] , activates when user is not connected also - by andruz99 - 04.05.2011, 19:26
Re: [Help] How can i make this thing? - by andruz99 - 05.05.2011, 16:32
Re: [Help] How can i make this thing? - by park4bmx - 05.05.2011, 16:43
Re: [Help] How can i make this thing? - by andruz99 - 05.05.2011, 17:27
Re: [Help] How can i make this thing? - by DRIFT_HUNTER - 05.05.2011, 17:40
Re: [Help] How can i make this thing? - by andruz99 - 05.05.2011, 17:42
Re: [Help] How can i make this thing? - by DRIFT_HUNTER - 05.05.2011, 17:47
Re: [Help] How can i make this thing? - by andruz99 - 05.05.2011, 17:59

Forum Jump:


Users browsing this thread: 1 Guest(s)