03.02.2014, 19:03
As u know i am Newbie Scripter
but the codes here
if(newkeys & 2 && IsPlayerInAnyVehicle(playerid))
{
new i = playerid;
for(new h=0; h<=MAX_GATES; h++)
{
if(IsPlayerInRangeOfPoint(i, 20.0, GateInfo[h][gCX], GateInfo[h][gCY], GateInfo[h][gCZ]))
{
OnPlayerCommandText(playerid, "/gate");
}
}
}*/ {Code number 6293}
if(newkeys & 2 && IsPlayerInAnyVehicle(playerid)) {Code Number 6294}
{
new i = playerid;
for(new g; g < sizeof(Gates); g++)
{
if(IsPlayerInRangeOfPoint(i, 20.0, Gates[g][closeX],Gates[g][closeY],Gates[g][closeZ]) || IsPlayerInRangeOfPoint(i, 20.0, Gates[g][openX],Gates[g][openY],Gates[g][openZ]))
{
OnPlayerCommandText(playerid, "/gate");
}
}
}
but the codes here
if(newkeys & 2 && IsPlayerInAnyVehicle(playerid))
{
new i = playerid;
for(new h=0; h<=MAX_GATES; h++)
{
if(IsPlayerInRangeOfPoint(i, 20.0, GateInfo[h][gCX], GateInfo[h][gCY], GateInfo[h][gCZ]))
{
OnPlayerCommandText(playerid, "/gate");
}
}
}*/ {Code number 6293}
if(newkeys & 2 && IsPlayerInAnyVehicle(playerid)) {Code Number 6294}
{
new i = playerid;
for(new g; g < sizeof(Gates); g++)
{
if(IsPlayerInRangeOfPoint(i, 20.0, Gates[g][closeX],Gates[g][closeY],Gates[g][closeZ]) || IsPlayerInRangeOfPoint(i, 20.0, Gates[g][openX],Gates[g][openY],Gates[g][openZ]))
{
OnPlayerCommandText(playerid, "/gate");
}
}
}