11.12.2010, 15:16
Nos primeiros IF's Tenta tirar o 2 e por o id 24.
Depois cria um
Ai tipo ao invйs de ficar = loko fazendo linhas gigantes tipo.
Sу colocar
E quando quiser saber se o cara nгo й Cop ai й sу usar.
Espero que isso ajude, Koй Jean Brasil New Life aopskaopsk!
Код:
else if(PlayerInfo[playerid][pMember] == 24) { SetSpawnInfo(playerid, 24, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
Код:
forward IsACop(playerid);
Код:
public IsACop(playerid) { if(IsPlayerConnected(playerid)) { new leader = PlayerInfo[playerid][pLeader]; new member = PlayerInfo[playerid][pMember]; if(member==1 || member==2 || member==3 || member==7 || member==14 || member==21|| member==24 ) // Coloque o Id das orgs policiais aqui. { return 1; } else if(leader==1 || leader==2 || leader==3 || leader==7 || leader==14 || leader==21 || leader==24) // Coloque o Id das orgs policiais aqui. { return 1; } } return 0; }
Код:
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pMember] == 21 ||PlayerInfo[playerid][pMember] == 24)
Код:
if(IsACop(playerid)) { //Coisas }
Код:
if(!IsACop(playerid)) { //Coisas }