27.10.2018, 12:30
I have a problem in my GM, sorry my English, it turns out that when my girl character dies in the police uniform or leaves the game, this changes to a man's skin what should I do?
I have a problem in my GM, sorry my English, it turns out that when my girl character dies in the police uniform or leaves the game, this changes to a man's skin what should I do?
|
public OnPlayerDeath(playerid, killerid, reason)
{
public OnPlayerDeath(playerid, killerid, reason) { antifakekill[playerid] ++; SetTimerEx("antifakekill2", 1000,false,"i",playerid); new arma[128]; if(IsPlayerConnected(killerid)) { GetWeaponName(reason, arma, sizeof(arma)); format(QFA[playerid],54,"%s, arma: %s", NombreJugador(killerid), arma); new string99[128]; for(new z=0;z<MAX_PLAYERS;z++) { if(PlayerInfo[z][jAdministrador] > 3) { format(string99,128,"%s (ID: %d | Nivel: %d) matу a %s (ID: %d | Nivel: %d) con %s.",NombreJugador(killerid),killerid,PlayerInfo[killerid][jNivel],NombreJugador(playerid),playerid,PlayerInfo[playerid][jNivel], arma); SendClientMessage(z,0xFFDBED15FF,string99); } } } if(killerid != INVALID_PLAYER_ID && Jail[killerid] == 1 && PlayerInfo[killerid][pTiempoCarcelM] > 0) { SendClientMessage(killerid, -1, "Acabas de asesinar a una persona en prisiуn, tu condenado fue aumentada."); PlayerInfo[killerid][pTiempoCarcelM] += 10; } if(Specteado[playerid] == 1) { foreach(Player,i) { if(SpecJugador[i] == playerid) { TogglePlayerSpectating(i,false); } } } PlayerInfo[playerid][pInterior] = GetPlayerInterior(playerid); PlayerInfo[playerid][pMundoVirtual] = GetPlayerVirtualWorld(playerid); PlayerInfo[playerid][EnCasa] = 0; PlayerInfo[playerid][EnRopero] = 0; PlayerInfo[playerid][EnGarage] = 0; Objeto[playerid] = 0; if(Manejando[playerid] == 1) { Manejando[playerid] = 0; } if(PlayerInfo[playerid][pTiempoCarcelM] > 0) return 1; if(IsPlayerConnected(killerid)) { format(QFA[playerid],80,"%s, arma: %s", NombreJugador(killerid), arma); } // Cargos if(IsPlayerInRangeOfPoint(Agresor[playerid],180.0,1759.6833,-1892.0160,13.5556) || IsPlayerInRangeOfPoint(Agresor[playerid],180.0,1833.7728,-1842.5350,13.5781)) { if(!IsPlayerInAnyVehicle(Agresor[playerid]) && GetPlayerState(Agresor[playerid]) != PLAYER_STATE_DRIVER) if(PlayerInfo[Agresor[playerid]][pDuty] == 0) if(PlayerInfo[Agresor[playerid]][pCargos] < 3) { new pName[24],string[200],string2[150]; GetPlayerName(Agresor[playerid],pName,24); PlayerInfo[Agresor[playerid]][pCargos] = 3; SetPlayerWantedLevel(Agresor[playerid],PlayerInfo[Agresor[playerid]][pCargos]); format(string, 200,"{3399FF}[Central de policнa]{FFFFFF} reportando: {00CCFF}%s{FFFFFF} [%d] cometiу un asesinato en Unity Station.",pName,Agresor[playerid]); SendRadioMessage(1,-1,string,INVALID_PLAYER_ID); SendClientMessage(Agresor[playerid],-1,"Acabas de asesinar a una persona, te vio el guardia de seguridad."); SendClientMessage(Agresor[playerid],-1,"Ya no tienes forma de escapar, toda la policнa fue alertada."); format(string2,150,"Zona Segura"); PlayerInfo[Agresor[playerid]][QuienC] = string2; TipoCargo[Agresor[playerid]] = 2; } else if(PlayerInfo[Agresor[playerid]][pCargos] >= 3) { new pName[24],string[200]; GetPlayerName(Agresor[playerid],pName,24); format(string, 200,"{3399FF}[Central de policнa]{FFFFFF} reportando: {00CCFF}%s{FFFFFF} [%d] cometiу un asesinato en Unity Station.",pName,Agresor[playerid]); SendRadioMessage(1,-1,string,INVALID_PLAYER_ID); PlayerInfo[Agresor[playerid]][pCargos] = 5; SetPlayerWantedLevel(Agresor[playerid],PlayerInfo[Agresor[playerid]][pCargos]); SendClientMessage(Agresor[playerid],-1,"Acabas de asesinar a una persona, te vio el guardia de seguridad."); SendClientMessage(Agresor[playerid],-1,"Ya no tienes forma de escapar, toda la policнa fue alertada."); } } if(IsPlayerInRangeOfPoint(Agresor[playerid],130.0,1173.2209,-1332.7537,13.9884) || IsPlayerInRangeOfPoint(Agresor[playerid],130.0,1833.7728,-1842.5350,13.5781)) { if(!IsPlayerInAnyVehicle(Agresor[playerid]) && GetPlayerState(Agresor[playerid]) != PLAYER_STATE_DRIVER) if(PlayerInfo[Agresor[playerid]][pDuty] == 0) if(PlayerInfo[Agresor[playerid]][pCargos] < 3) { new pName[24],string[200],string2[150]; GetPlayerName(Agresor[playerid],pName,24); PlayerInfo[Agresor[playerid]][pCargos] = 3; SetPlayerWantedLevel(Agresor[playerid],PlayerInfo[Agresor[playerid]][pCargos]); format(string, 200,"{3399FF}[Central de policнa]{FFFFFF} reportando: {00CCFF}%s{FFFFFF} [%d] cometiу un asesinato en el Hospital Central de Los Santos.",pName,Agresor[playerid]); SendRadioMessage(1,-1,string,INVALID_PLAYER_ID); SendClientMessage(Agresor[playerid],-1,"Acabas de asesinar a una persona, te vio el guardia de seguridad."); SendClientMessage(Agresor[playerid],-1,"Ya no tienes forma de escapar, toda la policнa fue alertada."); format(string2,150,"Zona Segura"); PlayerInfo[Agresor[playerid]][QuienC] = string2; TipoCargo[Agresor[playerid]] = 2; } else if(PlayerInfo[Agresor[playerid]][pCargos] >= 3) { new pName[24],string[200]; GetPlayerName(Agresor[playerid],pName,24); format(string, 200,"{3399FF}[Central de policнa]{FFFFFF} reportando: {00CCFF}%s{FFFFFF} [%d] cometiу un asesinato en Hospital Central de Los Santos.",pName,Agresor[playerid]); SendRadioMessage(1,-1,string,INVALID_PLAYER_ID); SendClientMessage(Agresor[playerid],-1,"Acabas de asesinar a una persona, te vio el guardia de seguridad."); SendClientMessage(Agresor[playerid],-1,"Ya no tienes forma de escapar, toda la policнa fue alertada."); PlayerInfo[Agresor[playerid]][pCargos] = 5; SetPlayerWantedLevel(Agresor[playerid],PlayerInfo[Agresor[playerid]][pCargos]); } } if(IsPlayerInRangeOfPoint(Agresor[playerid],70.0,-1745.5931,-131.6944,3.7314) || IsPlayerInRangeOfPoint(Agresor[playerid],70.0,-1821.9308,-122.5035,5.6484)) { if(!IsPlayerInAnyVehicle(Agresor[playerid]) && GetPlayerState(Agresor[playerid]) != PLAYER_STATE_DRIVER) if(PlayerInfo[Agresor[playerid]][pDuty] == 0) if(PlayerInfo[Agresor[playerid]][pCargos] < 3) { new pName[24],string[200],string2[150]; GetPlayerName(Agresor[playerid],pName,24); PlayerInfo[Agresor[playerid]][pCargos] = 3; SetPlayerWantedLevel(Agresor[playerid],PlayerInfo[Agresor[playerid]][pCargos]); format(string, 200,"{3399FF}[Central de policнa]{FFFFFF} reportando: {00CCFF}%s{FFFFFF} [%d] cometiу un asesinato en los Muelles de San Fierro.",pName,Agresor[playerid]); SendRadioMessage(1,-1,string,INVALID_PLAYER_ID); SendClientMessage(Agresor[playerid],-1,"Acabas de asesinar a una persona, te vio el guardia de seguridad."); SendClientMessage(Agresor[playerid],-1,"Ya no tienes forma de escapar, toda la policнa fue alertada."); format(string2,150,"Zona Segura"); PlayerInfo[Agresor[playerid]][QuienC] = string2; TipoCargo[Agresor[playerid]] = 2; } else if(PlayerInfo[Agresor[playerid]][pCargos] >= 3) { new pName[24],string[200]; GetPlayerName(Agresor[playerid],pName,24); format(string, 200,"{3399FF}[Central de policнa]{FFFFFF} reportando: {00CCFF}%s{FFFFFF} [%d] cometiу un asesinato en los Muelles de San Fierro.",pName,Agresor[playerid]); SendRadioMessage(1,-1,string,INVALID_PLAYER_ID); SendClientMessage(Agresor[playerid],-1,"Acabas de asesinar a una persona, te vio el guardia de seguridad."); SendClientMessage(Agresor[playerid],-1,"Ya no tienes forma de escapar, toda la policнa fue alertada."); } } if(IsPlayerInRangeOfPoint(Agresor[playerid],450.0,-1652.7432,23.0748,4.4347)) { if(!IsPlayerInAnyVehicle(Agresor[playerid]) && GetPlayerState(Agresor[playerid]) != PLAYER_STATE_DRIVER) if(PlayerInfo[Agresor[playerid]][pDuty] == 0) if(PlayerInfo[Agresor[playerid]][pCargos] < 3) { new pName[24],string[200],string2[150]; GetPlayerName(Agresor[playerid],pName,24); PlayerInfo[Agresor[playerid]][pCargos] = 3; SetPlayerWantedLevel(Agresor[playerid],PlayerInfo[Agresor[playerid]][pCargos]); format(string, 200,"{3399FF}[Central de policнa]{FFFFFF} reportando: {00CCFF}%s{FFFFFF} [%d] cometiу un asesinato en los Muelles de San Fierro.",pName,Agresor[playerid]); SendRadioMessage(1,-1,string,INVALID_PLAYER_ID); SendClientMessage(Agresor[playerid],-1,"Acabas de asesinar a una persona, te vio el guardia de seguridad."); SendClientMessage(Agresor[playerid],-1,"Ya no tienes forma de escapar, toda la policнa fue alertada."); format(string2,150,"Zona Segura"); PlayerInfo[Agresor[playerid]][QuienC] = string2; TipoCargo[Agresor[playerid]] = 2; } else if(PlayerInfo[Agresor[playerid]][pCargos] >= 3) { new pName[24],string[200]; GetPlayerName(Agresor[playerid],pName,24); format(string, 200,"{3399FF}[Central de policнa]{FFFFFF} reportando: {00CCFF}%s{FFFFFF} [%d] cometiу un asesinato en los Muelles de San Fierro.",pName,Agresor[playerid]); SendRadioMessage(1,-1,string,INVALID_PLAYER_ID); SendClientMessage(Agresor[playerid],-1,"Acabas de asesinar a una persona, te vio el guardia de seguridad."); SendClientMessage(Agresor[playerid],-1,"Ya no tienes forma de escapar, toda la policнa fue alertada."); } } if(IsPlayerInRangeOfPoint(Agresor[playerid],100.0,-384.4948,-1474.2228,25.7266)) { if(!IsPlayerInAnyVehicle(Agresor[playerid]) && GetPlayerState(Agresor[playerid]) != PLAYER_STATE_DRIVER) if(PlayerInfo[Agresor[playerid]][pDuty] == 0) if(PlayerInfo[Agresor[playerid]][pCargos] < 3) { new pName[24],string[200],string2[150]; GetPlayerName(Agresor[playerid],pName,24); PlayerInfo[Agresor[playerid]][pCargos] = 3; SetPlayerWantedLevel(Agresor[playerid],PlayerInfo[Agresor[playerid]][pCargos]); format(string, 200,"{3399FF}[Central de policнa]{FFFFFF} reportando: {00CCFF}%s{FFFFFF} [%d] cometiу un asesinato en las Granjas de Flint Range.",pName,Agresor[playerid]); SendRadioMessage(1,-1,string,INVALID_PLAYER_ID); SendClientMessage(Agresor[playerid],-1,"Acabas de asesinar a una persona, te vio el guardia de seguridad."); SendClientMessage(Agresor[playerid],-1,"Ya no tienes forma de escapar, toda la policнa fue alertada."); format(string2,150,"Zona Segura"); PlayerInfo[Agresor[playerid]][QuienC] = string2; TipoCargo[Agresor[playerid]] = 2; } else if(PlayerInfo[Agresor[playerid]][pCargos] >= 3) { new pName[24],string[200]; GetPlayerName(Agresor[playerid],pName,24); format(string, 200,"{3399FF}[Central de policнa]{FFFFFF} reportando: {00CCFF}%s{FFFFFF} [%d] cometiу un asesinato en las Granjas de Flint Range.",pName,Agresor[playerid]); SendRadioMessage(1,-1,string,INVALID_PLAYER_ID); SendClientMessage(Agresor[playerid],-1,"Acabas de asesinar a una persona, te vio el guardia de seguridad."); SendClientMessage(Agresor[playerid],-1,"Ya no tienes forma de escapar, toda la policнa fue alertada."); } } if(IsPlayerInRangeOfPoint(Agresor[playerid],100.0,-148.6831,-1577.2129,9.3045)) { if(!IsPlayerInAnyVehicle(Agresor[playerid]) && GetPlayerState(Agresor[playerid]) != PLAYER_STATE_DRIVER) if(PlayerInfo[Agresor[playerid]][pDuty] == 0) if(PlayerInfo[Agresor[playerid]][pCargos] < 3) { new pName[24],string[200],string2[150]; GetPlayerName(Agresor[playerid],pName,24); PlayerInfo[Agresor[playerid]][pCargos] = 3; SetPlayerWantedLevel(Agresor[playerid],PlayerInfo[Agresor[playerid]][pCargos]); format(string, 200,"{3399FF}[Central de policнa]{FFFFFF} reportando: {00CCFF}%s{FFFFFF} [%d] cometiу un asesinato en el Basural.",pName,Agresor[playerid]); SendRadioMessage(1,-1,string,INVALID_PLAYER_ID); SendClientMessage(Agresor[playerid],-1,"Acabas de asesinar a una persona, te vio el guardia de seguridad."); SendClientMessage(Agresor[playerid],-1,"Ya no tienes forma de escapar, toda la policнa fue alertada."); format(string2,150,"Zona Segura"); PlayerInfo[Agresor[playerid]][QuienC] = string2; TipoCargo[Agresor[playerid]] = 2; } else if(PlayerInfo[Agresor[playerid]][pCargos] >= 3) { new pName[24],string[200]; GetPlayerName(Agresor[playerid],pName,24); format(string, 200,"{3399FF}[Central de policнa]{FFFFFF} reportando: {00CCFF}%s{FFFFFF} [%d] cometiу un asesinato en el Basural.",pName,Agresor[playerid]); SendRadioMessage(1,-1,string,INVALID_PLAYER_ID); SendClientMessage(Agresor[playerid],-1,"Acabas de asesinar a una persona, te vio el guardia de seguridad."); SendClientMessage(Agresor[playerid],-1,"Ya no tienes forma de escapar, toda la policнa fue alertada."); } } if(IsPlayerInRangeOfPoint(Agresor[playerid],200.0,-2647.9409,605.9929,15.2346)) { if(!IsPlayerInAnyVehicle(Agresor[playerid]) && GetPlayerState(Agresor[playerid]) != PLAYER_STATE_DRIVER) if(PlayerInfo[Agresor[playerid]][pDuty] == 0) if(PlayerInfo[Agresor[playerid]][pCargos] < 3) { new pName[24],string[200],string2[150]; GetPlayerName(Agresor[playerid],pName,24); PlayerInfo[Agresor[playerid]][pCargos] = 3; SetPlayerWantedLevel(Agresor[playerid],PlayerInfo[Agresor[playerid]][pCargos]); format(string, 200,"{3399FF}[Central de policнa]{FFFFFF} reportando: {00CCFF}%s{FFFFFF} [%d] cometiу un asesinato en Hospital de San Fierro",pName,Agresor[playerid]); SendRadioMessage(1,-1,string,INVALID_PLAYER_ID); SendClientMessage(Agresor[playerid],-1,"Acabas de asesinar a una persona, te vio el guardia de seguridad."); SendClientMessage(Agresor[playerid],-1,"Ya no tienes forma de escapar, toda la policнa fue alertada."); format(string2,150,"Zona Segura"); PlayerInfo[Agresor[playerid]][QuienC] = string2; TipoCargo[Agresor[playerid]] = 2; } else if(PlayerInfo[Agresor[playerid]][pCargos] >= 3) { new pName[24],string[200]; GetPlayerName(Agresor[playerid],pName,24); format(string, 200,"{3399FF}[Central de policнa]{FFFFFF} reportando: {00CCFF}%s{FFFFFF} [%d] cometiу un asesinato en Hospital de San Fierro",pName,Agresor[playerid]); SendRadioMessage(1,-1,string,INVALID_PLAYER_ID); SendClientMessage(Agresor[playerid],-1,"Acabas de asesinar a una persona, te vio el guardia de seguridad."); SendClientMessage(Agresor[playerid],-1,"Ya no tienes forma de escapar, toda la policнa fue alertada."); } } if(IsPlayerInRangeOfPoint(Agresor[playerid],200.0,1611.4006,1781.1265,37.8510)) { if(!IsPlayerInAnyVehicle(Agresor[playerid]) && GetPlayerState(Agresor[playerid]) != PLAYER_STATE_DRIVER) if(PlayerInfo[Agresor[playerid]][pDuty] == 0) if(PlayerInfo[Agresor[playerid]][pCargos] < 3) { new pName[24],string[200],string2[150]; GetPlayerName(Agresor[playerid],pName,24); PlayerInfo[Agresor[playerid]][pCargos] = 3; SetPlayerWantedLevel(Agresor[playerid],PlayerInfo[Agresor[playerid]][pCargos]); format(string, 200,"{3399FF}[Central de policнa]{FFFFFF} reportando: {00CCFF}%s{FFFFFF} [%d] cometiу un asesinato en Hospital de Las Venturas",pName,Agresor[playerid]); SendRadioMessage(1,-1,string,INVALID_PLAYER_ID); SendClientMessage(Agresor[playerid],-1,"Acabas de asesinar a una persona, te vio el guardia de seguridad."); SendClientMessage(Agresor[playerid],-1,"Ya no tienes forma de escapar, toda la policнa fue alertada."); format(string2,150,"Zona Segura"); PlayerInfo[Agresor[playerid]][QuienC] = string2; TipoCargo[Agresor[playerid]] = 2; } else if(PlayerInfo[Agresor[playerid]][pCargos] >= 3) { new pName[24],string[200]; GetPlayerName(Agresor[playerid],pName,24); format(string, 200,"{3399FF}[Central de policнa]{FFFFFF} reportando: {00CCFF}%s{FFFFFF} [%d] cometiу un asesinato en Hospital de Las Venturas",pName,Agresor[playerid]); SendRadioMessage(1,-1,string,INVALID_PLAYER_ID); SendClientMessage(Agresor[playerid],-1,"Acabas de asesinar a una persona, te vio el guardia de seguridad."); SendClientMessage(Agresor[playerid],-1,"Ya no tienes forma de escapar, toda la policнa fue alertada."); } } if(IsPlayerInRangeOfPoint(Agresor[playerid],200.0,869.8167,873.0883,12.9141)) { if(!IsPlayerInAnyVehicle(Agresor[playerid]) && GetPlayerState(Agresor[playerid]) != PLAYER_STATE_DRIVER) if(PlayerInfo[Agresor[playerid]][pDuty] == 0) if(PlayerInfo[Agresor[playerid]][pCargos] < 3) { new pName[24],string[200],string2[150]; GetPlayerName(Agresor[playerid],pName,24); PlayerInfo[Agresor[playerid]][pCargos] = 3; SetPlayerWantedLevel(Agresor[playerid],PlayerInfo[Agresor[playerid]][pCargos]); format(string, 200,"{3399FF}[Central de policнa]{FFFFFF} reportando: {00CCFF}%s{FFFFFF} [%d] cometiу un asesinato en la Cantera de Hunter Quarry.",pName,Agresor[playerid]); SendRadioMessage(1,-1,string,INVALID_PLAYER_ID); SendClientMessage(Agresor[playerid],-1,"Acabas de asesinar a una persona, te vio el guardia de seguridad."); SendClientMessage(Agresor[playerid],-1,"Ya no tienes forma de escapar, toda la policнa fue alertada."); format(string2,150,"Zona Segura"); PlayerInfo[Agresor[playerid]][QuienC] = string2; TipoCargo[Agresor[playerid]] = 2; } else if(PlayerInfo[Agresor[playerid]][pCargos] >= 3) { new pName[24],string[200]; GetPlayerName(Agresor[playerid],pName,24); format(string, 200,"{3399FF}[Central de policнa]{FFFFFF} reportando: {00CCFF}%s{FFFFFF} [%d] cometiу un asesinato en la Cantera de Hunter Quarry.",pName,Agresor[playerid]); SendRadioMessage(1,-1,string,INVALID_PLAYER_ID); SendClientMessage(Agresor[playerid],-1,"Acabas de asesinar a una persona, te vio el guardia de seguridad."); SendClientMessage(Agresor[playerid],-1,"Ya no tienes forma de escapar, toda la policнa fue alertada."); } } // Cargos if(PlayerInfo[playerid][pDuty] == 1 && Agresor[playerid] != INVALID_PLAYER_ID) { if(PlayerInfo[Agresor[playerid]][pDuty] != 1) { new string[256],string2[150],pName[32],pName2[32]; GetPlayerName(Agresor[playerid],pName, 32); GetPlayerName(playerid,pName2, 32); if(PlayerInfo[Agresor[playerid]][pCargos] < 5) { PlayerInfo[Agresor[playerid]][pCargos] = 5; format(string2,150,"%s",NombreJugador(playerid)); PlayerInfo[Agresor[playerid]][QuienC] = string2; SetPlayerWantedLevel(Agresor[playerid],PlayerInfo[Agresor[playerid]][pCargos]); format(string, 256, "{3399FF}[Central de policнa]{FFFFFF} reportando: {00CCFF}%s{FFFFFF} [%d] asesinу a un oficial, detener vivo o muerto.",pName,Agresor[playerid]); SendRadioMessage(1, -1, string,playerid); } else if(PlayerInfo[Agresor[playerid]][pCargos] >= 5) { PlayerInfo[Agresor[playerid]][pCargos] = 6; SetPlayerWantedLevel(Agresor[playerid],PlayerInfo[Agresor[playerid]][pCargos]); format(string, 256, "{3399FF}[Central de policнa]{FFFFFF} reportando: {00CCFF}%s{FFFFFF} [%d] asesinу a multiple, detener vivo o muerto.",pName,Agresor[playerid]); SendRadioMessage(1, -1, string,playerid); } } } if(PlayerInfo[playerid][pCargos] > 0) { if(PlayerInfo[playerid][pCargos] == 1 && CagoSeguro[playerid] == 1) { PlayerInfo[playerid][pCargos] = 0; SetPlayerWantedLevel(playerid, PlayerInfo[playerid][pCargos]); CagoSeguro[playerid] = 0; } else { if(GetPlayerInterior(playerid) > 0) { SetTimerEx("Encerrando2",2000,false,"d",playerid); return 1; } GetPlayerPos(playerid, DeathXC[playerid], DeathYC[playerid], DeathZC[playerid]); SetSpawnInfo(playerid, 0, 0,DeathXC[playerid],DeathYC[playerid],DeathZC[playerid],0,0,0,0,0,0,0); VariableCaido[playerid] = 1; return 1; } } if(PlayerInfo[playerid][Agonizando] == 0) { GetPlayerPos(playerid, DeathX[playerid], DeathY[playerid], DeathZ[playerid]); SetSpawnInfo(playerid,0,PlayerInfo[playerid][jRopa],DeathX[playerid], DeathY[playerid], DeathZ[playerid],0,0,0,0,0,0,0); PlayerInfo[playerid][Agonizando] = 1; return 1; } else if(PlayerInfo[playerid][Agonizando] == 1) { PlayerInfo[playerid][Agonizando] = 2; } return 1; }
CMD:uniforme(playerid, params[]) { new texto[10]; if(!sscanf(params,"s[10]",texto)) { if(strcmp(texto, "medico", true) == 0) { if(PlayerInfo[playerid][jJob] == 1 || PlayerInfo[playerid][vipjob] == 1) { if(IsPlayerInRangeOfPoint(playerid,1.0,1159.4829,-1356.8820,-10.7922)) { if(RopaMedi[playerid] == 0) { switch(PlayerInfo[playerid][jSexo]) { case 1: { SetPlayerSkin(playerid,276); } case 2: { RemovePlayerAttachedObject(playerid, 3); RemovePlayerAttachedObject(playerid, 4); SetPlayerSkin(playerid,308); } } RopaMedi[playerid] = 1; SendClientMessage(playerid,-1,"Te has colocado el uniforme correctamente."); } else if(RopaMedi[playerid] == 1) { RemovePlayerAttachedObject(playerid, 3); RemovePlayerAttachedObject(playerid, 4); RopaMedi[playerid] = 0; SetPlayerSkin(playerid, PlayerInfo[playerid][jRopa]); SendClientMessage(playerid,-1,"Te has quitado el uniforme correctamente."); } } else return SendClientMessage(playerid,-1,"Necesitas el trabajo de mйdico para utilizar este comando"); } } if(strcmp(texto, "minero", true) == 0) { if(PlayerInfo[playerid][jJob] == 11 || PlayerInfo[playerid][vipjob] == 11) { if(IsPlayerInRangeOfPoint(playerid,1.0,269.1445,295.4604,999.8400)) { if(RopaMine[playerid] == 0) { RopaMine[playerid] = 1; SendClientMessage(playerid,-1,"Te has colocado el uniforme correctamente"); switch(PlayerInfo[playerid][jSexo]) { case 1: { SetPlayerSkin(playerid, 27); } case 2: { RemovePlayerAttachedObject(playerid, 3); RemovePlayerAttachedObject(playerid, 4); SetPlayerSkin(playerid, 131); SetPlayerAttachedObject(playerid,4,18638,2,0.136,0.018999,0.002999,-0.600001,-2.10002,-12.4,1,1,1.072); } } } else if(RopaMine[playerid] == 1) { RemovePlayerAttachedObject(playerid, 3); RemovePlayerAttachedObject(playerid, 4); RopaMine[playerid] = 0; SetPlayerSkin(playerid, PlayerInfo[playerid][jRopa]); SendClientMessage(playerid,-1,"Te has quitado el uniforme correctamente."); } } } else return SendClientMessage(playerid,-1,"Necesitas el trabajo de minero para utilizar este comando"); } } if(sscanf(params, "s[10]", texto)) { if(PlayerInfo[playerid][jMiembro] != 1) return 1; if(!PlayerToPoint(2.0, playerid, 254.0884,73.6973,1003.6406)) return SendClientMessage(playerid, COLOR_WHITE, "No estбs en el lugar adecuado"); if(PlayerInfo[playerid][pDuty] == 0) { switch(PlayerInfo[playerid][jSexo]) { case 1: { SendClientMessage(playerid, COLOR_WHITE, "Te pusiste el uniforme de policнa"); PlayerInfo[playerid][pDuty] = 1; SetPlayerSkin(playerid, PlayerInfo[playerid][pModelo]); SetPlayerColor(playerid,COLOR_POLICIA); } case 2: { SendClientMessage(playerid, COLOR_WHITE, "Te pusiste el uniforme de policнa"); PlayerInfo[playerid][pDuty] = 1; SetPlayerSkin(playerid, 306); SetPlayerColor(playerid,COLOR_POLICIA); } } } else { SetPlayerColor(playerid,COLOR_WHITE); SendClientMessage(playerid, COLOR_WHITE, "Te sacaste el uniforme de policнa."); SetPlayerSkin(playerid, PlayerInfo[playerid][jRopa]); PlayerInfo[playerid][pDuty] = 0; QuitarArmas(playerid); ResetPlayerWeapons(playerid); DarArmas(playerid); } } return 1; }