18.03.2012, 18:26
pawn Код:
if ( strcmp ( cmd , "/leavefaction" , true ) == 0 )
{
if ( IsPlayerConnected ( para 1 ) )
{
if ( para1 ! = Invalid_PLAYER_ID )
{
if ( PlayerInfo[para1][pMember] > 0 || PlayerInfo[playerid][pAdmin] >=1338 )
{
gTeam[para1] = 3;
PlayerInfo[para1][pTeam] = 3;
PlayerInfo[para1][pMember] = 0;
PlayerInfo[para1][pRank] = 0;
PlayerInfo[para1][pChar] = 0;
new rand = random(sizeof(CIV));
SetSpawnInfo(para1, gTeam[para1], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo[para1][pModel] = CIV[rand];
MedicBill[para1] = 0;
SpawnPlayer(para1);
}
}
}
return 1;
}