Getcar problem
#2

Try this:
pawn Код:
CMD:getcar(playerid,params[])
{
    //admin check
    {
        if(!strlen(params)) return
        SendClientMessage(playerid, -1, "Usage: /vget [VehicleID]") &&
        SendClientMessage(playerid,-1, "Function: Will Bring the specified Vehicle to your Position");
        new player1;
        new string[128];
        player1 = strval(params);
        new Float:x, Float:y, Float:z;
        GetPlayerPos(playerid,x,y,z);
        SetVehiclePos(player1,x+3,y,z);
        SetVehicleVirtualWorld(player1,GetPlayerVirtualWorld(playerid));
        format(string,sizeof(string),"You brought the Vehicle ID '%d' to your Position", player1);
        return SendClientMessage(playerid,-1,string);
    }
    //else return                  //you can tell em its not a player command
}
Reply


Messages In This Thread
Getcar problem - by Squirrel - 06.05.2013, 17:58
Re: Getcar problem - by DobbysGamertag - 06.05.2013, 18:06
AW: Getcar problem - by Squirrel - 06.05.2013, 18:07
Re: Getcar problem - by DobbysGamertag - 06.05.2013, 18:14
Re: Getcar problem - by Stanford - 06.05.2013, 18:15
AW: Getcar problem - by Squirrel - 06.05.2013, 18:21

Forum Jump:


Users browsing this thread: 1 Guest(s)