cambiar fs a gm
#1

Nada
Reply
#2

Es tan facil como poner
Код:
COMMAND:mycommand(playerid, params[])
{
//codigo del comando
 return 1;
}
Deberias intentar primero hacerlo tu..

Ejemplo..

Код:
    COMMAND:tirara(playerid, params[])
    { 
        new gunID = GetPlayerWeapon(playerid); 
        new gunAmmo = GetPlayerAmmo(playerid); 
        if(gunID != 0 && gunAmmo != 0) 
        { 
            new f = MAXIMO_ARMAS+1; 
            for(new a = 0; a < sizeof(ObjCoords); a++) 
            { 
                if(ObjCoords[a][0] == 0.0) 
                { 
                    f = a; 
                    break; 
                } 
            } 
            if(f > MAXIMO_ARMAS) return SendClientMessage(playerid, 0x33AA3300, "No puede tirar armas en йste momento, intente mбs tarde."); // Йste mensaje aparece si se superу el lнmite [MAXIMO_ARMAS] 
            new gunname[25]; 
            new string[100]; 
            GetWeaponNameEx(gunID, gunname, sizeof(gunname)); 
            format(string, sizeof(string), "* %s tira %s al suelo.", PlayerName(playerid), gunname); 
            ProxDetector(30.0, playerid, string, COLOR_VIOLETA,COLOR_VIOLETA,COLOR_VIOLETA,COLOR_VIOLETA,COLOR_VIOLETA); 
            RemovePlayerWeapon(playerid, gunID); 
            ObjectID[f][0] = gunID; 
            ObjectID[f][1] = gunAmmo; 
            GetPlayerPos(playerid, ObjCoords[f][0], ObjCoords[f][1], ObjCoords[f][2]); 
            Object[f] = CreateObject(GunObjects[gunID][0],ObjCoords[f][0],ObjCoords[f][1],ObjCoords[f][2]-1,93.7,120.0,120.0); 
            return 1; 
        } 
    }
Reply
#3

Nada
Reply
#4

Es porque esos "comandos" van afuera de cualquier callback.
Reply
#5

Cuales son los errores?
їSera por que no cargaste el #include <zcmd>?
No es por ofenderte, pero nosotros te podemos ayudar... Pero la iniciativa de aprender la tomas vos, no te podemos hacer todo nosotros.
Reply
#6

Gomez te dire algo. Yo empeze con pawn hace unas 6 semanas. Y sabes como aprendi un poco? Pidiendo que me orientarn y no pidiendoles a los demas. No es por ofender pero LEE LOS PUTOS ERRORES Y BUSCA EN ******. Xd, feliz navidad
Reply
#7

Mнnimo leer una guнa de pawn no?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)