04.08.2011, 15:44
How come my filterscript isn't working? I'm trying it on my gamemode i'v started from scratch but the cmds arnt working, the map works but the command dont work
public OnFilterScriptInit()
{
print("Filterscript loaded!");
return 1;
}
CMD:entergate(playerid,params[])
{
if(Groups[Player[playerid][Group]][CommandTypes] == 1 && Player[playerid][Group] != 0 || Groups[Player[playerid][Group]][CommandTypes] == 4)
IsPlayerInRangeOfPoint(playerid,2.0,135.1547,1946.6525,19.3597);
SetPlayerPosWithVehicle(playerid,135.0795,1936.3048,19.2716);
return 1;
}
Yes, I use Zcmd for everything
Edit: pawn Code:
|
CMD:entergate(playerid,params[])
{
if(Groups[Player[playerid][Group]][CommandTypes] == 1 && (Player[playerid][Group] != 0 || Groups[Player[playerid][Group]][CommandTypes] == 4) && IsPlayerInRangeOfPoint(playerid,2.0,135.1547,1946.6525,19.3597));
{ SetPlayerPosWithVehicle(playerid,135.0795,1936.3048,19.2716);}
return 1;
}
CMD:test(playerid,params[])
{
SendClientMessage(playerid,0xFFFFFF,"Working");
return 1;
}