13.10.2011, 18:24
How can I do that?
That's my /veh code
That's my /veh code
Код:
if(strcmp(cmd, "/veh", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] < 5)
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command!");
return 1;
}
ShowPlayerDialog(playerid, CARMENU, DIALOG_STYLE_LIST, "Vehicles","Heavy Trucks\nTrucks\n2Doors\n4Doors\nPlans\nBoats\nTrailers\nGovernment\nRC\nTransportation\nMotorCycles", "Spawn", "Cancel");
}
return 1;
}


It works perfectly 