callcar
#2

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
Reply


Messages In This Thread
callcar - by Fernado Samuel - 28.12.2012, 00:53
Re: callcar - by Scott Zulkifli - 28.12.2012, 01:07

Forum Jump:


Users browsing this thread: 1 Guest(s)