[ajuda]Respawn no carro antigo
#2

PHP код:
new Carro[MAX_PLAYERS];

public 
OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/zr350"cmdtexttrue10) == 0)
    {
        
DestroyVehicle(Carro[playerid]);
        new 
Float:X,Float:Y,Float:Z,Float:Angle;
        
GetPlayerPos(playerid,X,Y,Z);
        
GetPlayerFacingAngle(playerid,Angle);
        
Carro[playerid] = CreateVehicle(477,X,Y,Z,Angle,-1,-1,600);
        
PutPlayerInVehicle(playeridCarro[playerid], 0);
        return 
1;
    }
    return 
0;

Desta forma o outro veiculo serб destruido.
Reply


Messages In This Thread
[ajuda]Respawn no carro antigo - by Andrew_Guiga - 21.06.2011, 15:17
Re: [ajuda]Respawn no carro antigo - by Shadoww5 - 21.06.2011, 15:23
Re: [ajuda]Respawn no carro antigo - by Dr_Pawno - 21.06.2011, 15:28
Re: [ajuda]Respawn no carro antigo - by Andrew_Guiga - 21.06.2011, 15:38
Re: [ajuda]Respawn no carro antigo - by Ricop522 - 21.06.2011, 15:47
Re: [ajuda]Respawn no carro antigo - by Shadoww5 - 21.06.2011, 16:05

Forum Jump:


Users browsing this thread: 1 Guest(s)