Getcar problem
#5

Try this:

pawn Код:
CMD:getcar(playerid, params[])
{
    if (PlayerInfo[playerid][pAdmin] >= 3)
    {
        new carid;
        if(sscanf(params, "d", carid)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /getcar [carid]");
        new Float:plocx,Float:plocy,Float:plocz;

        GetPlayerPos(playerid, plocx, plocy, plocz);
        SetVehiclePos(carid,plocx,plocy+4, plocz);
        SetVehicleVirtualWorld(carid, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
    }
    else
    {
        SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
    }
    return 1;
}
+REP if I helped!, I hope that I helped ya
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)