15.08.2018, 23:58
Quote:
Originally Posted by InsaneBR
PHP код:
|
Consegui fazer uma base de como vou fazer:
PHP код:
public OnPlayerModelSelection(playerid, response, listid, modelid)
{
if(listid == VeiculosList)
{
if(!response)
return 1;
new Float:Pos[4];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
GetPlayerFacingAngle(playerid, Pos[3]);
switch(modelid)
{
case 400:
{
CreateVehicle(400, Pos[0], Pos[1], Pos[2], Pos[3], 0, 0, -1);
}
case 401:
{
CreateVehicle(401, Pos[0], Pos[1], Pos[2], Pos[3], 0, 0, -1);
}
case 402:
{
CreateVehicle(402, Pos[0], Pos[1], Pos[2], Pos[3], 0, 0, -1);
}
case 404:
{
CreateVehicle(404, Pos[0], Pos[1], Pos[2], Pos[3], 0, 0, -1);
}
}
}
return 1;
}