[Ajuda] comando trazer
#5

PHP код:
cmd:puxarveh(playeridparams[]) {
    new 
target;
    
    if(
sscanf(params"d"target)) return SendClientMessage(playerid,-1,"/puxarveh <vehicleid>");
    
    new 
Float:xFloat:yFloat:z;
    
    
GetXYInFrontOfPlayer(playeridxyz3);
    
SetVehiclePos(targetxyz);
    return 
1;
}
stock GetXYInFrontOfPlayer(playerid, &Float:x, &Float:yFloat:distance)
{
    
// Created by ******
    
new Float:a;
    
GetPlayerPos(playeridxya);
    
GetPlayerFacingAngle(playerida);
    if (
GetPlayerVehicleID(playerid)) {
        
GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
    }
    
+= (distance floatsin(-adegrees));
    
+= (distance floatcos(-adegrees));

Reply


Messages In This Thread
comando trazer - by Santso - 20.07.2018, 19:39
Re: comando trazer - by CALENZ021 - 20.07.2018, 19:54
Re: comando trazer - by augustogdo - 20.07.2018, 20:28
Re: comando trazer - by AutoMatic2 - 20.07.2018, 20:31
Re: comando trazer - by bruxo00 - 20.07.2018, 20:34
Re: comando trazer - by AutoMatic2 - 20.07.2018, 20:39

Forum Jump:


Users browsing this thread: 2 Guest(s)