Need help to convert this to rcon...
#5

pawn Код:
dcmd_setclans(playerid,params[])
{
    #pragma unused params
    if(!IsPlayerAdmin(playerid)) // If the player is not a rcon admin, it shows the above message to the player.
    {
        return SendClientMessage(playerid, -1, "You need to be a rcon admin to use this command!");
        return 1;
    }
    else // If he is a rcon admin, it completes the command
    {
        format(pS[String], 128, "");
        for(new p = 0;p <10; p++)
        {
            format(pS[String], 128, "%s%s\n",pS[String],ClanInfo[p][fName]);
        }
        return ShowPlayerDialog(playerid,ClanDialog+15, DIALOG_STYLE_LIST,"Clan List", pS[String], "Set", "Close");
    }
    return 1;
}
This should work fine (I also said what happens if the player is a rcon admin or if the player is not a rcon admin).
Reply


Messages In This Thread
Need help to convert this to rcon... - by RandomDude - 07.04.2013, 16:50
Re: Need help to convert this to rcon... - by doreto - 07.04.2013, 16:58
Re: Need help to convert this to rcon... - by RandomDude - 07.04.2013, 17:02
Re: Need help to convert this to rcon... - by Sithis - 07.04.2013, 18:54
Re: Need help to convert this to rcon... - by SilverKiller - 07.04.2013, 21:12
Re: Need help to convert this to rcon... - by Riddick94 - 07.04.2013, 21:15

Forum Jump:


Users browsing this thread: 1 Guest(s)