21.07.2014, 15:52
Nгo sei ...
Alguma coisa aqui ?
Quote:
sCar[MAX_PLAYERS], |
PHP код:
stock CriarVeiculo(playerid, modelid, Float:posX, Float:posY, Float:posZ, Float:angle, Colour1, Colour2, respawn_delay)
{
new world = GetPlayerVirtualWorld(playerid);
new interior = GetPlayerInterior(playerid);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(sCar[playerid]) DestroyVehicle(sCar[playerid]);
GetPlayerPos(playerid, posX, posY, posZ);
GetPlayerFacingAngle(playerid, angle);
sCar[playerid] = CreateVehicle(modelid, posX, posY, posZ, angle, Colour1, Colour2, respawn_delay);
LinkVehicleToInterior(sCar[playerid], interior);
SetVehicleVirtualWorld(sCar[playerid], world);
SetVehicleZAngle(sCar[playerid], angle);
PutPlayerInVehicle(playerid, sCar[playerid], 0);
SetPlayerInterior(playerid, interior);
}