SA-MP Forums Archive
callcar - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: callcar (/showthread.php?tid=402782)



callcar - Fernado Samuel - 28.12.2012

Removed


Re: callcar - Scott Zulkifli - 28.12.2012

pawn Код:
CMD:callcar(playerid,params[])
{
        new tmp[256], Index;
        new Float:plocx,Float:plocy,Float:plocz;
        tmp = strtok(params,Index);
        if(isnull(params)) return SendClientMessage(playerid, 0xFF0000AA, "USAGE: /callcar [ID]");
        new vidd = strval(params);
        new prName[MAX_PLAYER_NAME];
        GetPlayerName(playerid, prName, MAX_PLAYER_NAME);
        if(strcmp(vInfo[OwnedVeh(vidd)][vOwner], prName, true)==0)
        {
            GetPlayerPos(playerid, plocx, plocy, plocz);
            SetVehiclePos(carid,plocx,plocy+4, plocz);
            SetVehicleVirtualWorld(carid, GetPlayerVirtualWorld(playerid));
            LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
        }
        else
        {
            SendClientMessage(playerid, 0xFF0000AA, "This is not your vehicle!");
        }
        return 1;
}
i dont know