SA-MP Forums Archive
Pregunta - 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: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Pregunta (/showthread.php?tid=447959)



Pregunta - ErickPuga234 - 02.07.2013

Alguien me puede decir como hago un FS de no poder disparar dentro del aero de SF =


Respuesta: Pregunta - OTACON - 02.07.2013

pawn Код:
#include <a_samp>
#include <streamer>
new AreaAereo;
static weapons[13][2];

public OnFilterScriptInit() {
    AreaAereo=CreateDynamicRectangle(Float:minx, Float:miny, Float:maxx, Float:maxy, worldid = -1, interiorid = -1, playerid = -1);
    return true;
}
public OnFilterScriptExit() {
    DestroyDynamicArea(AreaAereo);
    return true;
}
public OnPlayerEnterDynamicArea(playerid, areaid) {
    if(areaid==AreaAereo) {
        for(new index = 0; index < 13; index++) {
            GetPlayerWeaponData(playerid, index, weapons[index][0], weapons[index][1]);
            ResetPlayerWeapons(playerid);
        }
    }
    return true;
}
public OnPlayerLeaveDynamicArea(playerid, areaid) {
    if(areaid==AreaAereo) {
        for(new index = 0; index < 13; index++) {
            GivePlayerWeapon(playerid, weapons[index][0], weapons[index][1]);
        }
    }
    return true;
}



Respuesta: Pregunta - ErickPuga234 - 02.07.2013

fatal error 107: too many error messages on one line
error 001: expected token: ";", but found ")"
error 017: undefined symbol "playerid"
error 017: undefined symbol "minx"


Respuesta: Pregunta - OTACON - 02.07.2013

tienes que modificar a tu gusto el CreateDynamicRectangle y crear la zona del aero.
https://sampforum.blast.hk/showthread.php?tid=336089


Respuesta: Pregunta - ErickPuga234 - 02.07.2013

MUchas gracias amigo