23.06.2013, 13:32
(
Последний раз редактировалось Lisaax; 23.06.2013 в 18:52.
)
I have 3 questions
Question 1 = If i do /fackick he's kicked from his faction but when im admin and i do /fackick it said ERROR: it isnt a command but he is kicked ??
Question 2: If i make a house of /hedit and he is doing /buyhouse he cant buy it. The house price is 0 and he dont own any houses = FIXED
Question 3= Is there a cmd for like /facmotd So i can set the fac mod of LSPD , LSFMd , Hitman etc.
Question 4= If i buy a house and im selling it through /asellhouse in my /stats its still in the ''houses'' and if i accepted 3reports log out and log in it said accepted report = 0
Thanks! will +Rep
Question 1 = If i do /fackick he's kicked from his faction but when im admin and i do /fackick it said ERROR: it isnt a command but he is kicked ??
Код:
CMD:fackick(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 4 || PlayerInfo[playerid][pUndercover] >=1 || PlayerInfo[playerid][pFactionModerator] >= 1) { new string[128], giveplayerid; if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /fackick [playerid]"); if(IsPlayerConnected(giveplayerid)) { if(PlayerInfo[giveplayerid][pMember] >= 1 || PlayerInfo[giveplayerid][pLeader] >= 1) { format(string, sizeof(string), "You have been faction-kicked, by %s.", GetPlayerNameEx( playerid )); SendClientMessageEx(giveplayerid, COLOR_LIGHTBLUE, string); PlayerInfo[giveplayerid][pTeam] = TEAM_GREEN; gTeam[giveplayerid] = PlayerInfo[giveplayerid][pTeam]; PlayerInfo[giveplayerid][pMember] = 0; PlayerInfo[giveplayerid][pRank] = 0; PlayerInfo[giveplayerid][pChar] = 0; PlayerInfo[giveplayerid][pDuty] = 0; PlayerInfo[giveplayerid][pLeader] = 0; PlayerInfo[giveplayerid][pDivision] = 0; if(!IsValidSkin(GetPlayerSkin(giveplayerid))) { new rand = random(sizeof(CIV)); SetPlayerSkin(giveplayerid,CIV[rand]); PlayerInfo[giveplayerid][pModel] = CIV[rand]; } player_remove_vip_toys(giveplayerid); pTazer[giveplayerid] = 0; SetPlayerToTeamColor(giveplayerid); format(string, sizeof(string), "You have faction-kicked %s.", GetPlayerNameEx(giveplayerid)); SendClientMessageEx(playerid, COLOR_WHITE, string); } else { SendClientMessageEx(playerid, COLOR_WHITE, "You can't kick someone from a faction if they're not a member."); } } else { SendClientMessageEx(playerid, COLOR_GREY, "Invalid player specified.."); } } return 1; }
Question 3= Is there a cmd for like /facmotd So i can set the fac mod of LSPD , LSFMd , Hitman etc.
Question 4= If i buy a house and im selling it through /asellhouse in my /stats its still in the ''houses'' and if i accepted 3reports log out and log in it said accepted report = 0
Thanks! will +Rep