07.10.2011, 23:36
hey okay i got 4 gates i got running as filter script and they keep fucking up so i just wanna put them in my game mode... here is the three gates where do i put them under gamemodeint()
Quote:
#include <a_samp> new Gates[1]; new GateState; public OnFilterScriptInit() { Gates[0] = CreateObject(2933,321.20001221,-1188.59997559,76.90000153,0.00000000,0.00000000,38 .00000000); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp("/passwordgotti", cmdtext, true, 10) == 0) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); if(IsPlayerInRangeOfPoint(playerid, 10, 321.20001221, -1188.59997559, 76.90000153)) { if(GateState == 0) { MoveObject(Gates[0], 311.15001221,-1188.59997559, 76.90000153, 10); GateState = 1; } else if (GateState == 1) { MoveObject(Gates[0], 321.20001221, -1188.59997559, 76.90000153, 10); GateState = 0; } } return 1; } return 0; } |
Quote:
#include <a_samp> new Gates[1]; new GateState; public OnFilterScriptInit() { Gates[0] = CreateObject(976,1501.69995117,-704.00000000,93.69999695,0.00000000,0.00000000,183 .9999694; return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp("/passwordgucci", cmdtext, true, 10) == 0) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); if(IsPlayerInRangeOfPoint(playerid, 10, 1501.69995117, -704.00000000, 93.69999695)) { if(GateState == 0) { MoveObject(Gates[0], 1491.599951179,-704.00000000, 93.69999695, 10); GateState = 1; } else if (GateState == 1) { MoveObject(Gates[0], 1501.69995117, -704.00000000, 93.69999695, 10); GateState = 0; } } return 1; } return 0; } |
Quote:
#include <a_samp> new Gates[1]; new GateState; public OnFilterScriptInit() { Gates[0] = CreateObject(2933,263.79998779,-1333.30004883,54.00000000,0.00000000,0.00000000,21 6.00000000); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp("/passwordwhitey", cmdtext, true, 10) == 0) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); if(IsPlayerInRangeOfPoint(playerid, 10, 263.79998779, -1333.30004883, 54.00000000)) { if(GateState == 0) { MoveObject(Gates[0], 273.59998779,-1333.30004883, 54.00000000, 10); GateState = 1; } else if (GateState == 1) { MoveObject(Gates[0], 263.79998779, -1333.30004883, 54.00000000, 10); GateState = 0; } } return 1; } return 0; } |
Quote:
#include <a_samp> new Gates[1]; new GateState; public OnFilterScriptInit() { Gates[0] = CreateObject(989, 261.86, -1231.52, 74.60, 1.00, -2.00, 322.00); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp("/passwordblunt", cmdtext, true, 10) == 0) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); if(IsPlayerInRangeOfPoint(playerid, 10, 261.86, -1231.52, 74.60)) { if(GateState == 0) { MoveObject(Gates[0], 261.69,-1231.49, 70.53, 10); GateState = 1; } else if (GateState == 1) { MoveObject(Gates[0], 261.86, -1231.52, 74.60, 10); GateState = 0; } } return 1; } return 0; } |