[Ajuda] Duvida basica
#2

pawn Код:
CMD:duelo(playerid,params[])
{
    new Other, Arma[32];
    if(sscanf(params,"is[32]",Other,Arma))
    {
        SendClientMessage(playerid, -1, "Armas: Eagle, Shotgun");
        return 1;
    }
    if(strcmp(Arma, "eagle", true) == 0)
    {
        if(IsPlayerConnected(Other) && !IsPlayerNPC(Other))
        {
            // Funзгo de iniciar o duelo ou do outro cara aceitar.
        }
    }
    else if(strcmp(Arma, "shotgun", true) == 0)
    {
        if(IsPlayerConnected(Other) && !IsPlayerNPC(Other))
        {
            // Funзгo de iniciar o duelo ou do outro cara aceitar.
        }
    }
    return 1;
}
Reply


Messages In This Thread
Duvida basica - by ModaLOKO - 09.06.2015, 20:58
Re: Duvida basica - by Felipe_Freeze - 09.06.2015, 22:16
Re: Duvida basica - by ModaLOKO - 09.06.2015, 22:23

Forum Jump:


Users browsing this thread: 1 Guest(s)