Jump to content
  • 0

Deschidere porti


yonutzz

Question

1 answer to this question

Recommended Posts

[pawn]forward NUMEGATECLOSE();[/pawn]

[pawn]new NUMEGATE;[/pawn]

La public OnGameModeInit() pui

[pawn]NUMEGATE = CreateObject(id,COORDONATE);[/pawn]

La public OnPlayerText(playerid, text[]) mai jos pui

[pawn]public NUMEGATECLOSE()

{

    MoveObject(NUMEGATE, COORDONATE,2);

    return 1;

}[/pawn]

Mai jos adaugi

[pawn]if (newkeys & KEY_FIRE)

{

if(IsPlayerInAnyVehicle(playerid))

{

if((IsACop(playerid)) && PlayerToPoint(15.0, playerid, COORDONATE))

{

MoveObject(NUMEGATE,COORDONATE,2);

SendClientMessage(playerid, COLOR_LIGHTRED, "Poarta de la garajul Politia Romana a fost deschisa.");

SetTimer("NUMEGATECLOSE", 10000, false);

}

}

}[/pawn]

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.