/givelicense help
#2

Forgot the command..


pawn Код:
dcmd_givelicense(playerid,params[])
{
    if(admin[playerid] <= 3) return 0;
    new pid;
    if(sscanf(params,"i",pid)) return SendClientMessage(playerid, 0xF60000AA, "USAGE: /givelicense [playerid]");
    else if(!IsPlayerConnected(pid)) return SendClientMessage(playerid, 0xFF0000FF, "There is no player online with that id online");
    else
    {
        new name[MAX_PLAYER_NAME],string[128];
        GetPlayerName(pid,name,sizeof(name));
        license[pid] = 1;
        format(string,sizeof(string),"An admin gave you license");
        SendClientMessage(pid,0xF60000AA,string);
        return 1;
    }

}
Reply


Messages In This Thread
/givelicense help - by Dolph - 22.04.2010, 15:52
Re: /givelicense help - by Dolph - 22.04.2010, 16:47

Forum Jump:


Users browsing this thread: 1 Guest(s)