17.08.2015, 18:59
PHP код:
public OnPlayerModelSelection(playerid, response, listid, modelid)
{
for(new i;i<sizeof vehlist;i++)
{
if(listid == vehlist[i])
{
if(response)
{
//Actions
}
else SendClientMessage(playerid,0xFF0000FF,"Cancelled vehicle selection");
}
break;
}
return 1;
}
PHP код:
CMD:veh(playerid,params[])
{
for(new i;i<sizeof vehlist;i++)
{
ShowModelSelectionMenu(playerid,vehlist[i],"Vehicles - Click to Spawn");
}
return 1;
}