yonutzz Posted March 4, 2012 Posted March 4, 2012 Cum fac la portile de la factiuni sa se deschida portile si cand Dau CAPSLOCK si cand dau click stanga la mouse?
SeleS Posted March 4, 2012 Posted March 4, 2012 [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]
Question
yonutzz
Cum fac la portile de la factiuni sa se deschida portile si cand Dau CAPSLOCK si cand dau click stanga la mouse?
1 answer to this question
Recommended Posts