07.07.2013, 18:47
Queria pedir ajuda de voces para adicionar esse code abaixo na public SetPlayerUnjail.
pawn Код:
if (PlayerInfo[playerid][pMembro] == 4 || PlayerInfo[playerid][pLider] == 4) {
if(PlayerInfo[playerid][pCargo] == 1) { SetPlayerSkin(playerid, 274); }
if(PlayerInfo[playerid][pCargo] == 2) { SetPlayerSkin(playerid, 274); }
if(PlayerInfo[playerid][pCargo] == 3) { SetPlayerSkin(playerid, 276); }
if(PlayerInfo[playerid][pCargo] == 4) { SetPlayerSkin(playerid, 275); }
if(PlayerInfo[playerid][pCargo] == 5) { SetPlayerSkin(playerid, 70); }
if(PlayerInfo[playerid][pCargo] == 6) { SetPlayerSkin(playerid, 70); }
if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 214); }
}
else if (PlayerInfo[playerid][pMembro] == 5 || PlayerInfo[playerid][pLider] == 5) {
if(PlayerInfo[playerid][pCargo] == 1) { SetPlayerSkin(playerid, 114); }
if(PlayerInfo[playerid][pCargo] == 2) { SetPlayerSkin(playerid, 116); }
if(PlayerInfo[playerid][pCargo] == 3) { SetPlayerSkin(playerid, 174); }
if(PlayerInfo[playerid][pCargo] == 4) { SetPlayerSkin(playerid, 173); }
if(PlayerInfo[playerid][pCargo] == 5) { SetPlayerSkin(playerid, 115); }
if(PlayerInfo[playerid][pCargo] == 6) { SetPlayerSkin(playerid, 115); }
if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 226); }
}
else if (PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6) {
if(PlayerInfo[playerid][pCargo] == 1) { SetPlayerSkin(playerid, 122); }
if(PlayerInfo[playerid][pCargo] == 2) { SetPlayerSkin(playerid, 272); }
if(PlayerInfo[playerid][pCargo] == 3) { SetPlayerSkin(playerid, 272); }
if(PlayerInfo[playerid][pCargo] == 4) { SetPlayerSkin(playerid, 121); }
if(PlayerInfo[playerid][pCargo] == 5) { SetPlayerSkin(playerid, 249); }
if(PlayerInfo[playerid][pCargo] == 6) { SetPlayerSkin(playerid, 249); }
if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 131); }
}
else if (PlayerInfo[playerid][pMembro] == 7 || PlayerInfo[playerid][pLider] == 7) {
if(PlayerInfo[playerid][pCargo] == 1) { SetPlayerSkin(playerid, 164); }
if(PlayerInfo[playerid][pCargo] == 2) { SetPlayerSkin(playerid, 164); }
if(PlayerInfo[playerid][pCargo] == 3) { SetPlayerSkin(playerid, 164); }
if(PlayerInfo[playerid][pCargo] == 4) { SetPlayerSkin(playerid, 183); }
if(PlayerInfo[playerid][pCargo] == 5) { SetPlayerSkin(playerid, 147); }
if(PlayerInfo[playerid][pCargo] == 6) { SetPlayerSkin(playerid, 147); }
if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 76); }
}
else if (PlayerInfo[playerid][pMembro] == 8 || PlayerInfo[playerid][pLider] == 8) {
if(PlayerInfo[playerid][pCargo] == 1) { SetPlayerSkin(playerid, 166); }
if(PlayerInfo[playerid][pCargo] == 2) { SetPlayerSkin(playerid, 166); }
if(PlayerInfo[playerid][pCargo] == 3) { SetPlayerSkin(playerid, 165); }
if(PlayerInfo[playerid][pCargo] == 4) { SetPlayerSkin(playerid, 127); }
if(PlayerInfo[playerid][pCargo] == 5) { SetPlayerSkin(playerid, 294); }
if(PlayerInfo[playerid][pCargo] == 6) { SetPlayerSkin(playerid, 294); }
if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 93); }
}
else if (PlayerInfo[playerid][pMembro] == 9 || PlayerInfo[playerid][pLider] == 9) {
if(PlayerInfo[playerid][pCargo] == 1) { SetPlayerSkin(playerid, 188); }
if(PlayerInfo[playerid][pCargo] == 2) { SetPlayerSkin(playerid, 188); }
if(PlayerInfo[playerid][pCargo] == 3) { SetPlayerSkin(playerid, 156); }
if(PlayerInfo[playerid][pCargo] == 4) { SetPlayerSkin(playerid, 156); }
if(PlayerInfo[playerid][pCargo] == 5) { SetPlayerSkin(playerid, 227); }
if(PlayerInfo[playerid][pCargo] == 6) { SetPlayerSkin(playerid, 227); }
if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 148); }
}
else if(PlayerInfo[playerid][pMembro] == 10 || PlayerInfo[playerid][pLider] == 10) {
if(PlayerInfo[playerid][pCargo] == 1) { SetPlayerSkin(playerid, 255); }
if(PlayerInfo[playerid][pCargo] == 2) { SetPlayerSkin(playerid, 240); }
if(PlayerInfo[playerid][pCargo] == 3) { SetPlayerSkin(playerid, 174); }
if(PlayerInfo[playerid][pCargo] == 4) { SetPlayerSkin(playerid, 253); }
if(PlayerInfo[playerid][pCargo] == 5) { SetPlayerSkin(playerid, 61); }
if(PlayerInfo[playerid][pCargo] == 6) { SetPlayerSkin(playerid, 61); }
if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 41); }
}
else if(PlayerInfo[playerid][pMembro] == 12 || PlayerInfo[playerid][pLider] == 12) {
if(PlayerInfo[playerid][pCargo] == 1) { SetPlayerSkin(playerid, 46); }
if(PlayerInfo[playerid][pCargo] == 2) { SetPlayerSkin(playerid, 46); }
if(PlayerInfo[playerid][pCargo] == 3) { SetPlayerSkin(playerid, 98); }
if(PlayerInfo[playerid][pCargo] == 4) { SetPlayerSkin(playerid, 43); }
if(PlayerInfo[playerid][pCargo] == 5) { SetPlayerSkin(playerid, 113); }
if(PlayerInfo[playerid][pCargo] == 6) { SetPlayerSkin(playerid, 113); }
if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 55); }
}
else if(PlayerInfo[playerid][pMembro] == 13 || PlayerInfo[playerid][pLider] == 13) {
if(PlayerInfo[playerid][pCargo] == 1) { SetPlayerSkin(playerid, 203); }
if(PlayerInfo[playerid][pCargo] == 2) { SetPlayerSkin(playerid, 117); }
if(PlayerInfo[playerid][pCargo] == 3) { SetPlayerSkin(playerid, 204); }
if(PlayerInfo[playerid][pCargo] == 4) { SetPlayerSkin(playerid, 126); }
if(PlayerInfo[playerid][pCargo] == 5) { SetPlayerSkin(playerid, 120); }
if(PlayerInfo[playerid][pCargo] == 6) { SetPlayerSkin(playerid, 120); }
if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 169); }
}
else if(PlayerInfo[playerid][pMembro] == 14 || PlayerInfo[playerid][pLider] == 14) {
if(PlayerInfo[playerid][pCargo] == 1) { SetPlayerSkin(playerid, 107); }
if(PlayerInfo[playerid][pCargo] == 2) { SetPlayerSkin(playerid, 106); }
if(PlayerInfo[playerid][pCargo] == 3) { SetPlayerSkin(playerid, 105); }
if(PlayerInfo[playerid][pCargo] == 4) { SetPlayerSkin(playerid, 269); }
if(PlayerInfo[playerid][pCargo] == 5) { SetPlayerSkin(playerid, 270); }
if(PlayerInfo[playerid][pCargo] == 6) { SetPlayerSkin(playerid, 270); }
if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 195); }
}
else if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15) {
if(PlayerInfo[playerid][pCargo] == 1) { SetPlayerSkin(playerid, 30); }
if(PlayerInfo[playerid][pCargo] == 2) { SetPlayerSkin(playerid, 192); }
if(PlayerInfo[playerid][pCargo] == 3) { SetPlayerSkin(playerid, 179); }
if(PlayerInfo[playerid][pCargo] == 4) { SetPlayerSkin(playerid, 48); }
if(PlayerInfo[playerid][pCargo] == 5) { SetPlayerSkin(playerid, 123); }
if(PlayerInfo[playerid][pCargo] == 6) { SetPlayerSkin(playerid, 123); }
if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 56); }
}
else if(PlayerInfo[playerid][pMembro] == 17 || PlayerInfo[playerid][pLider] == 17) {
if(PlayerInfo[playerid][pCargo] == 1) { SetPlayerSkin(playerid, 102); }
if(PlayerInfo[playerid][pCargo] == 2) { SetPlayerSkin(playerid, 102); }
if(PlayerInfo[playerid][pCargo] == 3) { SetPlayerSkin(playerid, 102); }
if(PlayerInfo[playerid][pCargo] == 4) { SetPlayerSkin(playerid, 103); }
if(PlayerInfo[playerid][pCargo] == 5) { SetPlayerSkin(playerid, 104); }
if(PlayerInfo[playerid][pCargo] == 6) { SetPlayerSkin(playerid, 104); }
if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 13); }
}
else if(PlayerInfo[playerid][pMembro] == 18 || PlayerInfo[playerid][pLider] == 18) {
if(PlayerInfo[playerid][pCargo] == 1) { SetPlayerSkin(playerid, 109); }
if(PlayerInfo[playerid][pCargo] == 2) { SetPlayerSkin(playerid, 109); }
if(PlayerInfo[playerid][pCargo] == 3) { SetPlayerSkin(playerid, 110); }
if(PlayerInfo[playerid][pCargo] == 4) { SetPlayerSkin(playerid, 110); }
if(PlayerInfo[playerid][pCargo] == 5) { SetPlayerSkin(playerid, 108); }
if(PlayerInfo[playerid][pCargo] == 6) { SetPlayerSkin(playerid, 108); }
if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 214); }
}
else if(PlayerInfo[playerid][pMembro] == 19 || PlayerInfo[playerid][pLider] == 19) {
if(PlayerInfo[playerid][pCargo] == 1) { SetPlayerSkin(playerid, 293); }
if(PlayerInfo[playerid][pCargo] == 2) { SetPlayerSkin(playerid, 180); }
if(PlayerInfo[playerid][pCargo] == 3) { SetPlayerSkin(playerid, 170); }
if(PlayerInfo[playerid][pCargo] == 4) { SetPlayerSkin(playerid, 22); }
if(PlayerInfo[playerid][pCargo] == 5) { SetPlayerSkin(playerid, 19); }
if(PlayerInfo[playerid][pCargo] == 6) { SetPlayerSkin(playerid, 19); }
if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 193); }
}
else if(PlayerInfo[playerid][pMembro] == 20 || PlayerInfo[playerid][pLider] == 20) {
if(PlayerInfo[playerid][pCargo] == 1) { SetPlayerSkin(playerid, 160); }
if(PlayerInfo[playerid][pCargo] == 2) { SetPlayerSkin(playerid, 160); }
if(PlayerInfo[playerid][pCargo] == 3) { SetPlayerSkin(playerid, 132); }
if(PlayerInfo[playerid][pCargo] == 4) { SetPlayerSkin(playerid, 137); }
if(PlayerInfo[playerid][pCargo] == 5) { SetPlayerSkin(playerid, 230); }
if(PlayerInfo[playerid][pCargo] == 6) { SetPlayerSkin(playerid, 230); }
if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 237); }
}
else if(PlayerInfo[playerid][pMembro] == 21 || PlayerInfo[playerid][pLider] == 21) {
if(PlayerInfo[playerid][pCargo] == 1) { SetPlayerSkin(playerid, 247); }
if(PlayerInfo[playerid][pCargo] == 2) { SetPlayerSkin(playerid, 254); }
if(PlayerInfo[playerid][pCargo] == 3) { SetPlayerSkin(playerid, 238); }
if(PlayerInfo[playerid][pCargo] == 4) { SetPlayerSkin(playerid, 248); }
if(PlayerInfo[playerid][pCargo] == 5) { SetPlayerSkin(playerid, 100); }
if(PlayerInfo[playerid][pCargo] == 6) { SetPlayerSkin(playerid, 100); }
if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 238); }
}
else if(PlayerInfo[playerid][pMembro] == 22 || PlayerInfo[playerid][pLider] == 22) {
if(PlayerInfo[playerid][pCargo] == 1) { SetPlayerSkin(playerid, 101); }
if(PlayerInfo[playerid][pCargo] == 2) { SetPlayerSkin(playerid, 181); }
if(PlayerInfo[playerid][pCargo] == 3) { SetPlayerSkin(playerid, 185); }
if(PlayerInfo[playerid][pCargo] == 4) { SetPlayerSkin(playerid, 291); }
if(PlayerInfo[playerid][pCargo] == 5) { SetPlayerSkin(playerid, 128); }
if(PlayerInfo[playerid][pCargo] == 6) { SetPlayerSkin(playerid, 128); }
if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 85); }
}
else if(PlayerInfo[playerid][pMembro] == 24 || PlayerInfo[playerid][pLider] == 24) {
if(PlayerInfo[playerid][pCargo] == 1) { SetPlayerSkin(playerid, 8); }
if(PlayerInfo[playerid][pCargo] == 2) { SetPlayerSkin(playerid, 135); }
if(PlayerInfo[playerid][pCargo] == 3) { SetPlayerSkin(playerid, 134); }
if(PlayerInfo[playerid][pCargo] == 4) { SetPlayerSkin(playerid, 50); }
if(PlayerInfo[playerid][pCargo] == 5) { SetPlayerSkin(playerid, 15); }
if(PlayerInfo[playerid][pCargo] == 6) { SetPlayerSkin(playerid, 15); }
if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 157); }
}
if(OnDuty[playerid] == 1)
{
if (PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1) {
if(PlayerInfo[playerid][pCargo] == 1) { SetPlayerSkin(playerid, 281); }
if(PlayerInfo[playerid][pCargo] == 2) { SetPlayerSkin(playerid, 281); }
if(PlayerInfo[playerid][pCargo] == 3) { SetPlayerSkin(playerid, 280); }
if(PlayerInfo[playerid][pCargo] == 4) { SetPlayerSkin(playerid, 267); }
if(PlayerInfo[playerid][pCargo] == 5) { SetPlayerSkin(playerid, 266); }
if(PlayerInfo[playerid][pCargo] == 6) { SetPlayerSkin(playerid, 265); }
if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 190); }
}
if (PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2) {
if(PlayerInfo[playerid][pCargo] == 1) { SetPlayerSkin(playerid, 285); }
if(PlayerInfo[playerid][pCargo] == 2) { SetPlayerSkin(playerid, 285); }
if(PlayerInfo[playerid][pCargo] == 3) { SetPlayerSkin(playerid, 285); }
if(PlayerInfo[playerid][pCargo] == 4) { SetPlayerSkin(playerid, 285); }
if(PlayerInfo[playerid][pCargo] == 5) { SetPlayerSkin(playerid, 285); }
if(PlayerInfo[playerid][pCargo] == 6) { SetPlayerSkin(playerid, 285); }
if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 298); }
}
if (PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3) {
if(PlayerInfo[playerid][pCargo] == 1) { SetPlayerSkin(playerid, 287); }
if(PlayerInfo[playerid][pCargo] == 2) { SetPlayerSkin(playerid, 287); }
if(PlayerInfo[playerid][pCargo] == 3) { SetPlayerSkin(playerid, 287); }
if(PlayerInfo[playerid][pCargo] == 4) { SetPlayerSkin(playerid, 287); }
if(PlayerInfo[playerid][pCargo] == 5) { SetPlayerSkin(playerid, 287); }
if(PlayerInfo[playerid][pCargo] == 6) { SetPlayerSkin(playerid, 287); }
if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 191); }
}
if (PlayerInfo[playerid][pMembro] == 11 || PlayerInfo[playerid][pLider] == 11) {
if(PlayerInfo[playerid][pCargo] == 1) { SetPlayerSkin(playerid, 185); }
if(PlayerInfo[playerid][pCargo] == 2) { SetPlayerSkin(playerid, 185); }
if(PlayerInfo[playerid][pCargo] == 3) { SetPlayerSkin(playerid, 286); }
if(PlayerInfo[playerid][pCargo] == 4) { SetPlayerSkin(playerid, 286); }
if(PlayerInfo[playerid][pCargo] == 5) { SetPlayerSkin(playerid, 295); }
if(PlayerInfo[playerid][pCargo] == 6) { SetPlayerSkin(playerid, 295); }
if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 224); }
}
if (PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16) {
if(PlayerInfo[playerid][pCargo] == 1) { SetPlayerSkin(playerid, 59); }
if(PlayerInfo[playerid][pCargo] == 2) { SetPlayerSkin(playerid, 59); }
if(PlayerInfo[playerid][pCargo] == 3) { SetPlayerSkin(playerid, 124); }
if(PlayerInfo[playerid][pCargo] == 4) { SetPlayerSkin(playerid, 299); }
if(PlayerInfo[playerid][pCargo] == 5) { SetPlayerSkin(playerid, 240); }
if(PlayerInfo[playerid][pCargo] == 6) { SetPlayerSkin(playerid, 186); }
if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 141); }
}
if (PlayerInfo[playerid][pMembro] == 23 || PlayerInfo[playerid][pLider] == 23) {
if(PlayerInfo[playerid][pCargo] == 1) { SetPlayerSkin(playerid, 284); }
if(PlayerInfo[playerid][pCargo] == 2) { SetPlayerSkin(playerid, 284); }
if(PlayerInfo[playerid][pCargo] == 3) { SetPlayerSkin(playerid, 282); }
if(PlayerInfo[playerid][pCargo] == 4) { SetPlayerSkin(playerid, 282); }
if(PlayerInfo[playerid][pCargo] == 5) { SetPlayerSkin(playerid, 290); }
if(PlayerInfo[playerid][pCargo] == 6) { SetPlayerSkin(playerid, 290); }
if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 216); }
}
if (PlayerInfo[playerid][pEmprego] == 10) {
if(PlayerInfo[playerid][pEmprego] == 10) { SetPlayerSkin(playerid, 133); }
}
if(PlayerInfo[playerid][pEmprego] == 5) {
if(PlayerInfo[playerid][pSex] == 1) { SetPlayerSkin(playerid, 163); }
if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 172); }
}
if(PlayerInfo[playerid][pEmprego] == 3) {
if(PlayerInfo[playerid][pEmprego] == 3) { SetPlayerSkin(playerid, 260); }
}
if(PlayerInfo[playerid][pEmprego] == 8) {
if(PlayerInfo[playerid][pSex] == 1) { SetPlayerSkin(playerid, 20); }
if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 11); }
}
}
return 1;
}
pawn Код:
public SetPlayerUnjail()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pJailed] > 0)
{
if(PlayerInfo[i][pJailTime] > 0 && WantAdvogado[i] == 0)
{
PlayerInfo[i][pJailTime]--;
}
if(PlayerInfo[i][pJailTime] <= 0 && WantAdvogado[i] == 0)
{
PlayerInfo[i][pJailTime] = 0;
if(PlayerInfo[i][pJailed] == 1)
{
SetPlayerInterior(i, 0);
SetPlayerPos(i,1797.4479,-1578.9553,14.0855);
}
else if(PlayerInfo[i][pJailed] == 2)
{
SetPlayerWorldBounds(i,20000.0000,-20000.0000,20000.0000,-20000.0000); //Reset world to player
SetPlayerInterior(i, 0);
SetPlayerPos(i, 90.2101,1920.4854,17.9422);
}
else if(PlayerInfo[i][pJailed] == 9)
{
SetPlayerInterior(i, 0);
SetPlayerPos(i, 1539.6094,-1694.4749,13.5469);
}
PlayerInfo[i][pJailed] = 0;
SendClientMessage(i, COLOR_GRAD1,"voce pagou sua divida com a sociedade.");
GameTextForPlayer(i, "~g~Livre~n~~w~Nao cometa mais crimes", 5000, 1);
ClearCrime(i);
SetPlayerToTeamColor(i);
}
}