17.01.2017, 12:23
(
Last edited by didimk157; 18/01/2017 at 09:42 AM.
)
PHP Code:
new VeiculoVeh[MAX_PLAYERS];
PHP Code:
new Float:X, Float:Y, Float:Z, Float:A;
PHP Code:
dcmd_moto(playerid, params[])
{
if(Player[playerid][pAdmin] >= 1)
GetPlayerPos(playerid, X, Y, Z);
VeiculoVeh[playerid]=1;
GetPlayerFacingAngle(playerid, A);
VeiculoVeh[playerid] = CreateVehicle(522, X, Y, Z, A, -1, -1, 30000);
PutPlayerInVehicle(playerid, VeiculoVeh[playerid], 0);
SendClientMessage(playerid, -1, "[INFO]: Veнculo criado com sucesso. Para deletar-lo use '/dc' ou '/dcm.'");
return 1;
}