SA-MP Forums Archive
Command help ( /makeleader ) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Command help ( /makeleader ) (/showthread.php?tid=368533)



Delete - Crica - 13.08.2012

Delete


Re: Command help ( /makeleader ) - Kindred - 13.08.2012

Do this instead:

pawn Код:
if(level == 0)
{
    PlayerInfo[giveplayerid][pFaction] = 255;
    PlayerInfo[giveplayerid][pRank] = 0;
    SetPlayerSkin(giveplayerid, 299);
    PlayerInfo[giveplayerid][pSkin] = 299;
    format(string, sizeof(string), "You have take %s control to faction number: %d (%s)", GetPlayerNameEx(para1),level,DynamicFactions[level][fName]);
    SendClientMessage(playerid, COLOR_GREEN, string);
    format(string, sizeof(string), "You have been retire to leader of faction %s by admin %s", DynamicFactions[level][fName],GetPlayerNameEx(playerid));
    SendClientMessage(para1, COLOR_LIGHTBLUE, string);
    return 1;
}



Delete - Crica - 13.08.2012

Delete