22.03.2012, 14:29
Please help , i dont know how to make Faction .. I wanna truck faction
Hmm Well !!!!. since people for sure around here will dump your noob question . and i know you are a brilliant person i tell ya what here the most secret that no one know to make a faction well
GO LEARN PAWN SCRIPTING IDIOT IT'S CALLED SCRIPTING YOU CAN'T TAKE A DAM PROGRAM TO MAKE A FACTION |
enum pInfo
{
pFaction,
pRank,
}
new PlayerInfo[MAX_PLAYERS][pInfo];
CMD:makeleader(playerid, params[])
{
new target, targetname[MAX_PLAYER_NAME], string[128], name[MAX_PLAYER_NAME], query[45], faction;
if(PlayerInfo[playerid][pAdmin] == 5 || PlayerInfo[playerid][pAdmin] == 6)
{
if (sscanf(params, "ui", target, faction)) return SendClientMessage(playerid, 0x787878AA, "Usage: /makeadmin <playerid> <faction>");
else if(!IsPlayerConnected(target)) return SendClientMessage(playerid, 0x787878AA,"SERVER: Invalid player ID");
name = GetName(playerid);
targetname = GetName(target);
PlayerInfo[target][pFaction] = faction;
PlayerInfo[target][pRank] = 6;
format(string, 128, "You have been made leader of faction slot %i by administrator %s.", PlayerInfo[target][pFaction], name);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, 128, "You've made %s the leader of faction slot %i", targetname, PlayerInfo[target][pFaction]);
SendClientMessage(playerid, COLOR_WHITE, string);
format(query, sizeof(query), "UPDATE `playerdata` SET `Faction` = '%i' WHERE `user` = '%s'", PlayerInfo[target][pFaction],targetname);
mysql_query(query);
}
else
{
SendClientMessage(playerid, 0x787878AA, "You are not authorized to use that command!");
}
return 1;
}
Hmm Well !!!!. since people for sure around here will dump your noob question . and i know you are a brilliant person i tell ya what here the most secret that no one know to make a faction well
GO LEARN PAWN SCRIPTING IDIOT IT'S CALLED SCRIPTING YOU CAN'T TAKE A DAM PROGRAM TO MAKE A FACTION |