ewo da pitam kako mogu scriptati da igrac moze napustiti organizaciju...hitno je..
u mene vako izgleda nadam se da sam od pomoci
if(strcmp(cmd, "/quitfaction", true) == 0)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Izasao si iz svoje organizacije i sad si civil!.");
gTeam[playerid] = 3;
PlayerInfo[playerid][pLeader] = 0;
PlayerInfo[playerid][pTeam] = 3;
PlayerInfo[playerid][pMember] = 0;
PlayerInfo[playerid][pRank] = 0;
PlayerInfo[playerid][pChar] = 0;
new rand = random(sizeof(CIV));
SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo[playerid][pModel] = CIV[rand];
MedicBill[playerid] = 0;
SpawnPlayer(playerid);
return 1;
}
}