Code
if(strcmp(cmd, "/uninvite_me", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pMember] > 0)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ты ушёл с огранизаций по собственному желанию...");
gTeam[playerid] = 3;
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] = 79; // скин бомжа, можно сменить на свой
MedicBill[playerid] = 0;
SpawnPlayer(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "Ты не состоишь в какой либо огранизаций.");
}
}
return 1;
}