09.02.2009, 12:01
hey, well.. iv'e got one gate working but.. the others just WONT work .. thare using a skin check, here is the code
Top Of Script:
OnGameModeInit:
public SFPDgate:
:/ wen i go up to the gate with the skin of the SWAT guy .. it doesnt move.. ? can someone help me out... ive got one working WITHOUT the skincheck.. but i want the gate for these skin ID's only:
281, 280, 282, 283, 288, 284, 285, 286.
THANKS in advanced
Top Of Script:
Код:
new SFPDGATE; new IsNearSFPDGate[MAX_PLAYERS]; forward SFPDgate(playerid); new GS; stock IsACop(playerid) GS = GetPlayerSkin(playerid)
Код:
SFPDGATE = CreateObject(968, -1572.186890, 658.823425, 6.962374, 0.0000, 268.8997, 270.0000); SetTimer("SFPDgate",100, 1);
Код:
public SFPDgate(playerid) { for(new i = 0; i < MAX_PLAYERS; i++) { if(PlayerToPoint(i, 10.0, -1572.186890, 658.823425, 6.962374)) { if(IsNearSFPDGate[i] == 0) { if(GS >= 281 && GS <= 280 && GS <= 282 && GS <= 283 && GS <= 288 && GS <= 284 && GS <= 285 && GS <= 286) { SetObjectRot(SFPDGATE, 0.0000, 347.9679, 270.0000); IsNearSFPDGate[i] = 1; } } else { if(IsNearSFPDGate[i] == 1) { SetObjectRot(SFPDGATE, 0.0000, 268.8997, 270.0000); IsNearSFPDGate[i] = 0; } } } } }
281, 280, 282, 283, 288, 284, 285, 286.
THANKS in advanced
