[ajuda]comando para skin
#1

Galera eu to a muito tempo tentado fazer com que o camando funcione apenas para 2 tipos de skin mas nao sei como fazer '-' olha como tentei:
pawn Код:
if(classid == 0 && classid == 7)
            {
            Gang[playerid]= FIRE;
}
no topo:
pawn Код:
new Gang[MAX_PLAYERS];
#define FIRE 3
e no comando coloquei:
pawn Код:
if(Gang[playerid]== FIRE)
    if(strcmp("/fogo",cmdtext, true, 10) == 0)
    {
    if(UsouComando[playerid] > gettime()) return SendClientMessage(playerid, -1,  "Espere 60 segundos para usar este comando novamente.");
    GetPlayerHealth(playerid, Vida[playerid]);
    SetPlayerHealth(playerid, 9999);
    GetPlayerPos(playerid, x, y, z);
    CreateExplosion(x, y, z, 11, 10.0);
    SetPlayerHealth(playerid, Vida[playerid]);
    UsouComando[playerid] = gettime() + 60;
    return 1;
    }
Alguem pode me ajudar ?
e Tem outra:
Alguem sabe fazer um comando para almentar a velocidade de correr ?
Reply
#2

man taca fogo ja ta pronto ; D oque eu kero e ke so as skins que estao na ordem 0 e 7 no (addplayerclass nao e o id das skins) que so elas possao usar esse comando
Reply
#3

tenta assim:

pawn Код:
if(Gang[playerid]== FIRE)
    if(strcmp("/fogo",cmdtext, true, 10) == 0)
    {
    new Skin = GetPlayerSkin(playerid);
    if(Skin != 0 || Skin != 7) return SendClientMessage(playerid, -1, "Vocк nгo possui a skin 0 ou 7");
    if(UsouComando[playerid] > gettime()) return SendClientMessage(playerid, -1,  "Espere 60 segundos para usar este comando novamente.");
    GetPlayerHealth(playerid, Vida[playerid]);
    SetPlayerHealth(playerid, 9999);
    GetPlayerPos(playerid, x, y, z);
    CreateExplosion(x, y, z, 11, 10.0);
    SetPlayerHealth(playerid, Vida[playerid]);
    UsouComando[playerid] = gettime() + 60;
    return 1;
    }
sei la, testa ae
Reply
#4

lucas axo qe funfa vo testar mais eu tenho qe colocar o id da skin ae pq 0 e 7 ne id nao e a ordem ^^
Reply
#5

kero qe funcione nas skins mais como disse os ids sao 97 e 181 nao 0 e 7, 0e 7 sao as ordens ^^
Reply
#6

sim!! ^^ mais as skins sao 181 e 97 nao 0 e 7 kk
Reply
#7

entгo muda o 0 e 0 7 pelos ids...
pra setar ele pra gang faz o mesmo esquema sу q no onplayerspawn

pawn Код:
public OnPlayerSpawn(playerid)
{
   new skin = GetPlayerSkin(playerid);
   if(skin == 97 || skin == 181)
   {
      Gang[playerid] = FIRE;
      return 1;
   }
   return 1;
}
Reply
#8

lucas vc fez exatamente oque eu nao keria kkk mais aki eu tentei adapitar assim :
pawn Код:
new Skin = GetPlayerSkin(playerid);
if(strcmp("/fogo",cmdtext, true, 10) == 0)
    if(Skin == 97 || Skin == 181)
    {
   
    if(Skin != 97 || Skin != 181) return SendClientMessage(playerid, -1, "Vocк nгo possui a skin 0 ou 7");
    if(UsouComando[playerid] > gettime()) return SendClientMessage(playerid, -1,  "Espere 60 segundos para usar este comando novamente.");
    GetPlayerHealth(playerid, Vida[playerid]);
    SetPlayerHealth(playerid, 9999);
    GetPlayerPos(playerid, x, y, z);
    CreateExplosion(x, y, z, 11, 10.0);
    SetPlayerHealth(playerid, Vida[playerid]);
    UsouComando[playerid] = gettime() + 60;
    return 1;
    }
Reply
#9

velew lucas eu dei uma editada no codigo antigo e coloquei esse ae e funfoo !! <3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)