14.03.2012, 18:31
So I've been trying to code a gate for a gang in my server, all the info is in the pastebin.
http://pastebin.com/tuy1qBjR
+rep for anyone who helps.
http://pastebin.com/tuy1qBjR
+rep for anyone who helps.
CMD:rbmgateopen(playerid, params[]) {
if(playerVariables[playerid][pGroup] == 4)
{
if (IsPlayerInRangeOfPoint(playerid, 5, 1013.40002441,-1542.09997559,16.10000038) && GetPlayerInterior(playerid) == 0)
{
MoveObject(RBMGate, 1013.40002441,-1542.09997559,16.10000038, 5);
return 1;
}
}
}
pawn Код:
|
CMD:rbmgateopen(playerid, params[]) {
if(playerVariables[playerid][pGroup] == 4)
{
if (IsPlayerInRangeOfPoint(playerid, 5, 1013.40002441,-1542.09997559,16.10000038) && GetPlayerInterior(playerid) == 0)
{
MoveObject(RBMGate, 1013.40002441,-1542.09997559,16.10000038, 5);
return 1;
}
}
} //Error line
CMD:rbmgateopen(playerid, params[])
{
if(playerVariables[playerid][pGroup] == 4)
{
if (IsPlayerInRangeOfPoint(playerid, 5, 1013.40002441,-1542.09997559,16.10000038) && GetPlayerInterior(playerid) == 0)
{
MoveObject(RBMGate, 1013.40002441,-1542.09997559,16.10000038, 5);
return 1;
}
}
return 1;
} //Error