03.11.2011, 20:03
Quote:
Bom galera como sou nb pra kct em pawno (nao me considero um nb em pawno mais acho que se eu n sei faze isso que estou pedindo devo ser nb mesmo...) eu gostaria que alguem fizece um fs com essa include de neon:
https://sampforum.blast.hk/showthread.php?tid=262451 tipo eu gostaria de um fs que tivece o menu do neon em box e tbm o cmd do /neon para abri o menu e a opзг ode tirar os neons no proprio box |
pawn Код:
#include <a_samp>
#include <zcmd>
#include <nLibrary>
#define FILTERSCRIPT
public OnFilterScriptInit()
{
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case 6767:
{
if(!response) return 1;
switch(listitem)
{
case 0: AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_WHITE);
case 1: AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_RED);
case 2: AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_GREEN);
case 3: AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_YELLOW);
case 4: AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_PINK);
case 5: AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_BLUE);
case 6:{if(IsVehicleUsingNeon(GetPlayerVehicleID(playerid))) RemoveNeonFromVehicle(GetPlayerVehicleID(playerid));}
}
}
}
return 1;
}
CMD:neon(playerid, params[])
{
if(!IsPlayerInAnyVehicle(playerid)) return 1;
ShowPlayerDialog(playerid, 6767, DIALOG_STYLE_LIST, "Neon Lista", "Branco\nVermelho\nVerde\nAmarelo\nRoxo\nAzul\nRemover", "Instalar", "Cancelar");
return 1;
}
Quote:
tambйm queria se algue mpoder,fazer a sirene da policia em um outro fs porque vo usa a sirene sу pros cop entao se alguem pudece criar um fs com as sirene tipo /sirene ai aparece a sirene ai /rsirene pra retira a sirenes
|
pawn Код:
CMD:sirene(playerid, params[])
{
if(!IsPlayerInAnyVehicle(playerid)) return 1;
if(IsVehicleUsingBuzzer(GetPlayerVehicleID(playerid))) return 1;
AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_POLICE);
return 1;
}
CMD:rsirene(playerid, params[])
{
if(!IsPlayerInAnyVehicle(playerid)) return 1;
if(!IsVehicleUsingBuzzer(GetPlayerVehicleID(playerid))) return 1;
RemoveBuzzerFromVehicle(GetPlayerVehicleID(playerid));
return 1;
}