How to change this to zcmd
#2

pawn Код:
CMD:makelht(playerid, params[])
{
    if(PlayerInfo[playerid][Level] >= 5)
    {
        new pID, str[128], pName[MAX_PLAYER_NAME];
        if (sscanf(params, "u", pID))
                return SendClientMessage(playerid, 0xFF0000AA, "Usage: makelht <Player ID>");

            GetPlayerName(pID, pName, MAX_PLAYER_NAME);
            format(str, sizeof str, "LHTmem/%s", pName);
            new INI:lol = INI_Open(str);
            INI_WriteInt(lol, "RandomName", 1337);
            INI_Close(lol);
            SetPVarInt(pID, "LHT:IsMember", 1);
            format(str, sizeof str, "\"%s\" is now a member of LHT!!! {ffff00}Congratulations!!!!!",  pName);
            for(new i; i < MAX_PLAYERS; i++) SendClientMessage(i, red, str);
    } else SendClientMessage(playerid, red, "ERROR: You are not a high enough level to use this command");
    return 1;
}
Reply


Messages In This Thread
How to change this to zcmd - by [LHT]Bally - 20.03.2012, 17:27
Re: How to change this to zcmd - by antonio112 - 20.03.2012, 17:58

Forum Jump:


Users browsing this thread: 4 Guest(s)