SA-MP Forums Archive
[Ajuda] Skin Policial - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Skin Policial (/showthread.php?tid=467047)



Skin Policial - powerths - 30.09.2013

Intгo tenho um comando aqui de /procurar, Mais to querendo colocar /procurar se o policial tiver fardado ID Skis policial: 283, 282, 285, 280. ai tenho o comando para bloquear para quem nгo ta fardado com este id <-

PHP код:
if(dini_Int(file,"Skin") == ID Skins){
SendClientMessage(playeridVermelho,"[ > ] Vocк nгo esta fardado.");
return 
1;

mais tipo si eu colocar skin 0 б 299 й muito fica fazendo isso -> if(dini_Int(file,"Skin") == 0 || dini_Int(file,"Skin") == 1 dini_Int(file,"Skin") == 2 ){ i por diante

Mais nгo tem otro geito nгo


Re: Skin Policial - Juniiro3 - 30.09.2013

PHP код:
if (dini_Int(file,"Skin") == SkinDesejada || dini_Int(file,"Skin") == SkinDesejada2 )
{
    
//Funcoes

Vai fazendo assim.


Respuesta: Skin Policial - DanDRT - 30.09.2013

PHP код:
for(new 0MAX_PLAYERSi++)
{
    if(
IsPlayerConnected(i))
    {
         if(
GetPlayerSkin(i) == SkinNumber || GetPlayerSkin(i) == SkinNumber || GetPlayerSkin(i) == SkinNumber)
         {
             
//Funзгo
         
}
    }




Re: Skin Policial - powerths - 30.09.2013

ok viw


Re: Skin Policial - Coe1 - 30.09.2013

pawn Код:
new fardado[MAX_PLAYERS];

CMD:fardar(playerid)
{
     fardado[playerid] = 1;
     return 1;
}

CMD:procurar(playerid, params[])
{
    if(!fardado[playerid]) return SendClientMessage(playerid, -1,"Vocк nгo esta fardado.");
    // Funзхes.
    return 1;
}