05.12.2011, 15:45
pawn Код:
if(strcmp(cmdtext, "/carro", true) == 0)
return ShowPlayerDialog(playerid,351,DIALOG_STYLE_INPUT,"Sistema de Veiculo","Digite o ID Do Carro Desejado.","Criar","Cancelar");
pawn Код:
if(dialogid == 351)
{
if(response)
{
if((400 > strval(inputtext) > 611) || strval(inputtext) == 425 || strval(inputtext) == 432 || strval(inputtext) == 520) return SendClientMessage(playerid, -1, "ID invalido!");
new Float:pharrel[3];
GetPlayerPos(playerid, pharrel[0], pharrel[1], pharrel[2]);
pharrel[0] = float(CreateVehicle(strval(inputtext), pharrel[0], pharrel[1], pharrel[2], 0, 0, 0, 999999));
PutPlayerInVehicle(playerid, floatround(pharrel[0]), 0);
return 1;
}
}