[AJUDA]Skin plzz
#1

ola pessoal, eu no meu server tenho uma faction de policia e eu uso skin 59 ao fazer /duty vai pa skin 181 ta serto, mas ao fazer duty pa sair de serviso a skin fica 181 nao da pa ficar aquela que tinha vestida em antes de tar de serviso ? ou seja a skin 59 ? de acordo com que os outros players fiquem com as suas skins anntigas
Reply
#2

Me passa o cmd /duty pra eu ver
Reply
#3

if(strcmp(cmd, "/duty", true) == 0)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerInfo[playerid][pLocal] != 255)
{
if(OnDuty[playerid]==0)
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
format(string, sizeof(string), "* Oficial %s teve um distintivo e uma arma de seu armбrio.", sendername);
}
else if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
format(string, sizeof(string), "* Argente %s teve um distintivo e uma arma de seu armбrio.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
SafeGivePlayerWeapon(playerid, 24, 9999);
SafeGivePlayerWeapon(playerid, 25, 9999);
SafeGivePlayerWeapon(playerid, 29, 9999);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
SetPlayerSkin(playerid, 281)
SetPlayerColor(playerid,0x008EFFFF);
OnDuty[playerid] = 1;
}
else if(OnDuty[playerid]==1)
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
format(string, sizeof(string), "* Oficial %s coloca seu distintivo e arma no seu armбrio.", sendername);
}
else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
format(string, sizeof(string), "* Argente %s coloca seu distintivo e arma no seu armбrio.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
SafeResetPlayerWeapons(playerid);
SetPlayerArmour(playerid, 0);
SetPlayerSkin(playerid, 59);
SafeGivePlayerWeapon(playerid, 41, 500);
SetPlayerColor(playerid,0x008EFFFF);
OnDuty[playerid] = 0;
}
}
Reply
#4

Nao consigo mandar Quote FGG
Reply
#5

Bota no OnPlayerSpawn pra ele pegar o skin do player e transformar em string e depois vc bota no OnPlayerUpdate pra ele checar if(OnDuty[playerid] = 0)
setar a skin salva la como string, vai ser algo assim
Reply
#6

Como ? mande quote com o comando duty plz nao presevo nada do que disse, tipo nao sei onde meter a skin 281 :S

pa ficar em serviso
Reply
#7

ih cara, agora vc precisa de alguem com mais exp pq so te dei uma luz entao .... nao sei dai, pensei melhor nesse caso e percebi que vai ficar meio dificil
Reply
#8

Vc e a unica pessoa ke me ta tentar ajudar de resto ng ajuda so vejo o ppl a responder aos outros menus a mim :S
Reply
#9

nossa cara nao seja tao depressivo, as respostas nao vem assim voando tb, vc tem q ter calma, paciencia e esperar com que alguem te ajude(mais do que eu), entende, eu era assim tb quando comecei kkk
Reply
#10

Pois vou esperar atao
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)