26.06.2013, 23:32
pawn Код:
#include <a_samp>
#define FILTERSCRIPT
#include <zcmd>
new
sireneObjeto,
bool:TaComSirene[MAX_PLAYERS]
;
#define AMARELO 0xFFFF00AA
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" [FS] Sirene");
print("--------------------------------------\n");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
DestroyObject(sireneObjeto);
return 1;
}
CMD:sirene(playerid)
{
if(TaComSirene[playerid] == false)
{
sireneObjeto = CreateObject(19419, 0, 0, 0, 0, 0, 0);
AttachObjectToVehicle(sireneObjeto, GetPlayerVehicleID(playerid), 0.009999, -0.019999, 0.944999, 0.000000, 0.000000, 0.000000);
SendClientMessage(playerid, AMARELO, "Sirene Adicionada com sucesso.");
TaComSirene[playerid] = true;
}
else
{
SendClientMessage(playerid, AMARELO, "| ERRO | Vocк precisa deletar a ultima Sirene Criada! (/removersirene)");
}
return 1;
}
CMD:removersirene(playerid)
{
if(TaComSirene[playerid] == true)
{
DestroyObject(sireneObjeto);
SendClientMessage(playerid, AMARELO, "Sirene Removida, para adicionar novamente [/sirene].");
TaComSirene[playerid] = false;
}
else
{
SendClientMessage(playerid, AMARELO, "| ERRO | Vocк nгo criou nenhuma Sirene. (/sirene)");
}
return 1;
}