- 0
Gate jail
-
Similar Content
-
- 0 replies
- 347 views
-
- 0 replies
- 223 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
aNoRmaL
Am facut o poarta si cand o deschid nu se deschide cum trebuie.
si uitati si scriptul:
[pawn] if((newkeys==KEY_CROUCH))
{
if(PlayerToPoint(12.0,playerid,3277.30004883,-778.29998779,12.80000019))
{
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
{
if ((!adds)) {return 1;}
SetTimer("AddsOn10", addtimer36, 0);adds = 0;
MoveObject(jailgate, 3277.3000488281,-778.29998779297,6.8000001907349, 3);
SCM(playerid, COLOR_REDCLAU, "{FFFFFF}Bariera a fost deschisa si se inchide in 4 secunde. Drum Bun! ");
SetTimer("closejailgate",4000,0);
}
}
}
[/pawn]
[pawn]public closejailgate()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
MoveObject(jailgate, 3277.3000488281,-778.29998779297,12.80000019, 3);
}
}
return 1;
}[/pawn]
Link to comment
Share on other sites
10 answers to this question
Recommended Posts