problem: commands not working
#1

hello guys one of my filterscripts seems to not work as there are no errors but.. the cmds dont work ingame :/

here is my code:
pawn Code:
#define FILTERSCRIPT

#include <a_samp>
#include <zcmd>
#include <sscanf2>

#if defined FILTERSCRIPT



public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" ***************************************");
    print(" * Filterscript by thefatshizms  *");
    print(" ***************************************");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
    return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
    return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    return 1;
}
CMD:givecar(playerid,params[])
{
    new carid;
    new id;
    new Float:X, Float:Y, Float:Z, Float:angle;
    if(sscanf(params,"du",carid, id)) return SendClientMessage(playerid,-1,"Error: - /givecar [car id] [player id]");
    GetPlayerPos(id, X, Y, Z);
    GetPlayerFacingAngle(id, angle);
    CreateVehicle(carid, X, Y, Z, angle, 0, 1, 60);
    PutPlayerInVehicle(id, carid, 0);
    return 1;
}
CMD:goto(playerid, params[])
{
    new id;
    new Float:X, Float:Y, Float:Z;
    if(sscanf(params,"u",id)) return SendClientMessage(playerid, -1, "USAGE: /goto [id]");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "this player isnt connected!");
    GetPlayerPos(id, X, Y, Z);
    SetPlayerPos(playerid, X, Y, Z);
    return 1;
}
#endif
Reply


Messages In This Thread
problem: commands not working - by thefatshizms - 06.06.2012, 12:30
Re: problem: commands not working - by MadeMan - 06.06.2012, 12:40
Re: problem: commands not working - by thefatshizms - 06.06.2012, 12:45
Re: problem: commands not working - by MadeMan - 06.06.2012, 12:46
Re: problem: commands not working - by thefatshizms - 06.06.2012, 12:48
Re: problem: commands not working - by JaKe Elite - 06.06.2012, 13:13
Re: problem: commands not working - by Sajeevan - 06.06.2012, 13:25
Re: problem: commands not working - by thefatshizms - 06.06.2012, 13:29
Re: problem: commands not working - by Sandiel - 06.06.2012, 13:32

Forum Jump:


Users browsing this thread: 1 Guest(s)