new Menu:NEON_MENU;
public OnGameModeExit()
{
NEON_MENU = CreateMenu("Neons", 1, 50.0, 180.0, 130.0, 130.0);
AddMenuItem(NEON_MENU, 0, "Branco");
AddMenuItem(NEON_MENU, 0, "Azul");
AddMenuItem(NEON_MENU, 0, "Verde");
AddMenuItem(NEON_MENU, 0, "Rosa");
AddMenuItem(NEON_MENU, 0, "Vermelho");
AddMenuItem(NEON_MENU, 0, "Amarelo");
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
new Menu:Current = GetPlayerMenu(playerid);
if(Current == NEON_MENU)
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, -1, "Vocк nгo estб em um veнculo.");
switch(row)
{
case 0:
{
AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_WHITE);
}
case 1:
{
AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_BLUE);
}
case 2:
{
AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_GREEN);
}
case 3:
{
AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_PINK);
}
case 4:
{
AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_RED);
}
case 5:
{
AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_YELLOW);
}
}
}
return 1;
}
CMD:neon(playerid, params[])
return ShowMenuForPlayer(NEON_MENU, playerid);
sim mais tipo eu queria retirar a sirene e colocar num otro fs D:
|
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 |
#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;
}
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
|
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;
}
FS com comando /neon pra colocar/retirar neon dos veнculos:
pawn Код:
Comandos para adicionar/remover sirene. pawn Код:
|
C:\Documents and Settings\Tiago\Desktop\Desktop 1 burn\Servidor\pawno\include\nLibrary.inc(151) : warning 217: loose indentation C:\Documents and Settings\Tiago\Desktop\Desktop 1 burn\Servidor\pawno\include\nLibrary.inc(154) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings.
Tem um no prуprio tуpico:
pawn Код:
|
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2662) : error 004: function "SaveAdminLideres" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2667) : error 004: function "OnPropUpdate" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2668) : error 004: function "SaveCK" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2669) : error 004: function "SaveIRC" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2670) : error 004: function "SavePapers" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2671) : error 004: function "SalvarTerritorio" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2672) : error 004: function "SaveBoxer" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2673) : error 004: function "SaveCars" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2674) : error 004: function "SaveVip" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2675) : error 004: function "LoadAdminLideres" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2676) : error 004: function "LoadCar" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2677) : error 004: function "LoadVip" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4228) : error 017: undefined symbol "GivePlayerMoneyEx" C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4257) : error 017: undefined symbol "GivePlayerMoneyEx" C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4374) : error 004: function "OnPlayerCommandText" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4380) : error 004: function "OnPlayerCommandText" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4407) : error 004: function "OnPlayerCommandText" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4413) : error 004: function "OnPlayerCommandText" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4433) : error 004: function "OnPlayerCommandText" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4469) : error 004: function "OnPlayerCommandText" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4485) : error 004: function "OnPlayerCommandText" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4491) : error 004: function "OnPlayerCommandText" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4497) : error 004: function "OnPlayerCommandText" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4503) : error 004: function "OnPlayerCommandText" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4509) : error 004: function "OnPlayerCommandText" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4515) : error 004: function "OnPlayerCommandText" is not implemented Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.
Код:
C:\Documents and Settings\Tiago\Desktop\Desktop 1 burn\Servidor\pawno\include\nLibrary.inc(151) : warning 217: loose indentation C:\Documents and Settings\Tiago\Desktop\Desktop 1 burn\Servidor\pawno\include\nLibrary.inc(154) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings. |
Код:
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2662) : error 004: function "SaveAdminLideres" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2667) : error 004: function "OnPropUpdate" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2668) : error 004: function "SaveCK" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2669) : error 004: function "SaveIRC" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2670) : error 004: function "SavePapers" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2671) : error 004: function "SalvarTerritorio" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2672) : error 004: function "SaveBoxer" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2673) : error 004: function "SaveCars" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2674) : error 004: function "SaveVip" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2675) : error 004: function "LoadAdminLideres" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2676) : error 004: function "LoadCar" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2677) : error 004: function "LoadVip" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4228) : error 017: undefined symbol "GivePlayerMoneyEx" C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4257) : error 017: undefined symbol "GivePlayerMoneyEx" C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4374) : error 004: function "OnPlayerCommandText" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4380) : error 004: function "OnPlayerCommandText" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4407) : error 004: function "OnPlayerCommandText" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4413) : error 004: function "OnPlayerCommandText" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4433) : error 004: function "OnPlayerCommandText" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4469) : error 004: function "OnPlayerCommandText" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4485) : error 004: function "OnPlayerCommandText" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4491) : error 004: function "OnPlayerCommandText" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4497) : error 004: function "OnPlayerCommandText" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4503) : error 004: function "OnPlayerCommandText" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4509) : error 004: function "OnPlayerCommandText" is not implemented C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4515) : error 004: function "OnPlayerCommandText" is not implemented Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors. geralmente ele da todos esses erros quando й sу um probleminha de nada ele compromete nessa merda toda o.O |