hello all a gépemen találtam egy bonusz auto scriptet
ez nem hasonlit arra amit website irt
ha beülsz akkor másodpercenként kpasz 7 $-t
Script:
[pawn]#include <a_samp>
#include <fixchars.h>
#include <zcmd>
#define COLOR_LBLUE 0x63DBE4FF
#define COLOR_IMPORTANT 0xFF0000AA
#define COLOR_LGREEN 0x9EF764FF
#define COLOR_WHITE 0xFFFFFFFF
#define COLOR_LEMONCHIFFON 0xFFFACDFF
#define COLOR_ROB_SUCCESS 0x00CCFFAA
#define COLOR_ROB_FAILURE 0xCCCCFFAA
#define COLOR_FLBLUE 0x6495EDAA
#define COLOR_ROB_ERROR 0xFF0000AA
#define COLOR_GREY 0xC0C0C0FF
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_RED 0xFF0000AA
#define COLOR_ORANGE 0xFF9900AA
#define LARANJA 0xFF6600AA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_BLUE 0x0000BBAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_LIGHTCYAN 0xAAFFCC33
#define COLOR_PINK 0xFF66FFAA
#define COLOR_LIGHTGREEN 0x24FF0AB9
new engine, lights, alarm, doors, bonnet, boot, objective;
new BonusCarSpawnTimerName;
new Infernus, neon1, neon2;
forward BonusCarSpawnTimer();
forward BonusCarPay(playerid);
new BonusCarPayName[MAX_PLAYERS];
new BonusCarOwnerName[MAX_PLAYER_NAME];
new BonusCarMessageString[256];
new neon1object;
new neon2object;
public OnFilterScriptInit()
{
BonusCarSpawnTimerName = SetTimer(\"BonusCarSpawnTimer\",600000, true);
return 1;
}
public OnFilterScriptExit()
{
KillTimer(BonusCarSpawnTimerName);
GetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, false);
RemoveVehicleComponent(Infernus, 1010);
RemoveVehicleComponent(Infernus, 1083);
RemoveVehicleComponent(Infernus, 1086);
RemoveVehicleComponent(Infernus, 1087);
DestroyObject(neon1);
DestroyObject(neon2);
DestroyVehicle(Infernus);
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if (newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT)
{
if (GetPlayerVehicleID(playerid) == Infernus)
{
BonusCarPayName[playerid] = SetTimerEx(\"BonusCarPay\",1000, true, \"i\", playerid);
GetPlayerName(playerid, BonusCarOwnerName, sizeof(BonusCarOwnerName));
format(BonusCarMessageString, sizeof(BonusCarMessageString), \"{33CCFF}..::{FFFF00}Bónusz autó{33CCFF}::.. {FFFFFF}%s {FFFACD}beszált a bónusz autóba ezért minden másodpercben gazdagabb lesz 7$-al!\", BonusCarOwnerName);
SendClientMessageToAll(0x00FF00AA, BonusCarMessageString);
SendClientMessage(playerid,0xFF9900AA, \"Beszáltál a bónusz jármûbe! Vigyázz, mert ha elveszik tõled nem kapsz pénzt!\");
}
}
if(newstate == PLAYER_STATE_ONFOOT && oldstate == PLAYER_STATE_DRIVER)
{
KillTimer(BonusCarPayName[playerid]);
}
return 1;
}
public BonusCarPay(playerid)
{
GivePlayerMoney(playerid, 7);
return 1;
}
public OnVehicleDeath(vehicleid)
{
if(vehicleid == Infernus)
{
GetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, false);
RemoveVehicleComponent(Infernus, 1010);
RemoveVehicleComponent(Infernus, 1083);
RemoveVehicleComponent(Infernus, 1086);
RemoveVehicleComponent(Infernus, 1087);
DestroyObject(neon1);
DestroyObject(neon2);
DestroyVehicle(Infernus);
SendClientMessageToAll(-1, \"Felrobbant a bónusz autó, pár perc és újra spawnol!\");
}
return 1;
}
public BonusCarSpawnTimer()
{
new rand = random(4);
switch(rand)
{
case 0:
{
if( Infernus > 0 )
{
GetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, false);
RemoveVehicleComponent(Infernus, 1010);
RemoveVehicleComponent(Infernus, 1083);
RemoveVehicleComponent(Infernus, 1086);
RemoveVehicleComponent(Infernus, 1087);
DestroyObject(neon1);
DestroyObject(neon2);
DestroyVehicle(Infernus);
}
Infernus = CreateVehicle(562, -1945.2056, 268.3177, 35.2010, 61.6616, -1,-1,-1);
LinkVehicleToInterior(Infernus, 0);
GetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, true);
AddVehicleComponent(Infernus, 1010);
AddVehicleComponent(Infernus, 1083);
AddVehicleComponent(Infernus, 1086);
AddVehicleComponent(Infernus, 1087);
SendClientMessageToAll(0xFF00FFAA, \"{33CCFF}..::{FFFF00}Bónusz autó{33CCFF}::..{FF0000}Lespawnolt {33CCFF}San Fierro-ban a Wang Cars környékén!\");
neon1object = CreateObject(18650,0,0,0,0,0,0);
neon2object = CreateObject(18650,0,0,0,0,0,0);
neon1 = AttachObjectToVehicle(neon1object, Infernus, -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
neon2 = AttachObjectToVehicle(neon2object, Infernus, 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
}
case 1:
{
if( Infernus > 0 )
{
GetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, false);
RemoveVehicleComponent(Infernus, 1010);
RemoveVehicleComponent(Infernus, 1083);
RemoveVehicleComponent(Infernus, 1086);
RemoveVehicleComponent(Infernus, 1087);
DestroyObject(neon1);
DestroyObject(neon2);
DestroyVehicle(Infernus);
}
Infernus = CreateVehicle(562, -2686.6650, 234.0492, 4.0630, 271.5745, -1,-1,-1);
LinkVehicleToInterior(Infernus, 0);
GetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, true);
AddVehicleComponent(Infernus, 1010);
AddVehicleComponent(Infernus, 1083);
AddVehicleComponent(Infernus, 1086);
AddVehicleComponent(Infernus, 1087);
SendClientMessageToAll(0xFF00FFAA, \"{33CCFF}..::{FFFF00}Bónusz autó{33CCFF}::..{FF0000}Lespawnolt {33CCFF}San Fierro-ban a Wheels arch angels környékén!\");
neon1object = CreateObject(18650,0,0,0,0,0,0);
neon2object = CreateObject(18650,0,0,0,0,0,0);
neon1 = AttachObjectToVehicle(neon1object, Infernus, -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
neon2 = AttachObjectToVehicle(neon2object, Infernus, 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
}
case 2:
{
if( Infernus > 0 )
{
GetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, false);
RemoveVehicleComponent(Infernus, 1010);
RemoveVehicleComponent(Infernus, 1083);
RemoveVehicleComponent(Infernus, 1086);
RemoveVehicleComponent(Infernus, 1087);
DestroyObject(neon1);
DestroyObject(neon2);
DestroyVehicle(Infernus);
}
Infernus = CreateVehicle(562, 2352.7075, 1490.8682, 42.5474, 89.8538, -1,-1,-1);
LinkVehicleToInterior(Infernus, 0);
GetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, true);
AddVehicleComponent(Infernus, 1010);
AddVehicleComponent(Infernus, 1083);
AddVehicleComponent(Infernus, 1086);
AddVehicleComponent(Infernus, 1087);
SendClientMessageToAll(0xFF00FFAA, \"{33CCFF}..::{FFFF00}Bónusz autó{33CCFF}::..{FF0000}Lespawnolt {33CCFF}Las Venturas-ban az eggyik parkoló környékén!\");
neon1object = CreateObject(18650,0,0,0,0,0,0);
neon2object = CreateObject(18650,0,0,0,0,0,0);
neon1 = AttachObjectToVehicle(neon1object, Infernus, -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
neon2 = AttachObjectToVehicle(neon2object, Infernus, 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
}
case 3:
{
if( Infernus > 0 )
{
GetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, false);
RemoveVehicleComponent(Infernus, 1010);
RemoveVehicleComponent(Infernus, 1083);
RemoveVehicleComponent(Infernus, 1086);
RemoveVehicleComponent(Infernus, 1087);
DestroyObject(neon1);
DestroyObject(neon2);
DestroyVehicle(Infernus);
}
Infernus = CreateVehicle(562, 2461.9817, -1711.9194, 13.2485, 263.9848, -1,-1,-1);
LinkVehicleToInterior(Infernus, 0);
GetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, true);
AddVehicleComponent(Infernus, 1010);
AddVehicleComponent(Infernus, 1083);
AddVehicleComponent(Infernus, 1086);
AddVehicleComponent(Infernus, 1087);
SendClientMessageToAll(0xFF00FFAA, \"{33CCFF}..::{FFFF00}Bónusz autó{33CCFF}::..{FF0000}Lespawnolt {33CCFF}Los Santos-ban a Groove Street környékén!\");
neon1object = CreateObject(18650,0,0,0,0,0,0);
neon2object = CreateObject(18650,0,0,0,0,0,0);
neon1 = AttachObjectToVehicle(neon1object, Infernus, -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
neon2 = AttachObjectToVehicle(neon2object, Infernus, 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
}
case 4:
{
if( Infernus > 0 )
{
GetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, false);
RemoveVehicleComponent(Infernus, 1010);
RemoveVehicleComponent(Infernus, 1083);
RemoveVehicleComponent(Infernus, 1086);
RemoveVehicleComponent(Infernus, 1087);
DestroyObject(neon1);
DestroyObject(neon2);
DestroyVehicle(Infernus);
}
Infernus = CreateVehicle(562, 1410.1666, -1648.4840, 13.1072, 269.4228, -1,-1,-1);
LinkVehicleToInterior(Infernus, 0);
GetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, true);
AddVehicleComponent(Infernus, 1010);
AddVehicleComponent(Infernus, 1083);
AddVehicleComponent(Infernus, 1086);
AddVehicleComponent(Infernus, 1087);
SendClientMessageToAll(0xFF00FFAA, \"{33CCFF}..::{FFFF00}Bónusz autó{33CCFF}::..{FF0000}Lespawnolt {33CCFF}Los Santos-ban a Rendõrség környékén!\");
neon1object = CreateObject(18650,0,0,0,0,0,0);
neon2object = CreateObject(18650,0,0,0,0,0,0);
neon1 = AttachObjectToVehicle(neon1object, Infernus, -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
neon2 = AttachObjectToVehicle(neon2object, Infernus, 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
}
case 5:
{
if( Infernus > 0 )
{
GetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, false);
RemoveVehicleComponent(Infernus, 1010);
RemoveVehicleComponent(Infernus, 1083);
RemoveVehicleComponent(Infernus, 1086);
RemoveVehicleComponent(Infernus, 1087);
DestroyObject(neon1);
DestroyObject(neon2);
DestroyVehicle(Infernus);
}
Infernus = CreateVehicle(562, 314.8932, -1788.4923, 4.3542, 178.6097, -1,-1,-1);
LinkVehicleToInterior(Infernus, 0);
GetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, true);
AddVehicleComponent(Infernus, 1010);
AddVehicleComponent(Infernus, 1083);
AddVehicleComponent(Infernus, 1086);
AddVehicleComponent(Infernus, 1087);
SendClientMessageToAll(0xFF00FFAA, \"{33CCFF}..::{FFFF00}Bónusz autó{33CCFF}::..{FF0000}Lespawnolt {33CCFF}Los Santos-ban a Déli-Tengerpart (Santa Marina Beach) környékén!\");
neon1object = CreateObject(18650,0,0,0,0,0,0);
neon2object = CreateObject(18650,0,0,0,0,0,0);
neon1 = AttachObjectToVehicle(neon1object, Infernus, -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
neon2 = AttachObjectToVehicle(neon2object, Infernus, 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
}
case 6:
{
if( Infernus > 0 )
{
GetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, false);
RemoveVehicleComponent(Infernus, 1010);
RemoveVehicleComponent(Infernus, 1083);
RemoveVehicleComponent(Infernus, 1086);
RemoveVehicleComponent(Infernus, 1087);
DestroyObject(neon1);
DestroyObject(neon2);
DestroyVehicle(Infernus);
}
Infernus = CreateVehicle(562, -2238.2244, -1712.5552, 480.5915, 186.8263, -1,-1,-1);
LinkVehicleToInterior(Infernus, 0);
GetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(Infernus, engine, lights, alarm, doors, bonnet, boot, true);
AddVehicleComponent(Infernus, 1010);
AddVehicleComponent(Infernus, 1083);
AddVehicleComponent(Infernus, 1086);
AddVehicleComponent(Infernus, 1087);
SendClientMessageToAll(0xFF00FFAA, \"{33CCFF}..::{FFFF00}Bónusz autó{33CCFF}::..{FF0000}Lespawnolt {33CCFF}Chilliad környékén!\");
neon1object = CreateObject(18650,0,0,0,0,0,0);
neon2object = CreateObject(18650,0,0,0,0,0,0);
neon1 = AttachObjectToVehicle(neon1object, Infernus, -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
neon2 = AttachObjectToVehicle(neon2object, Infernus, 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
}
}
return 1;
}[/pawn]
remélem valaki hasznát veszi
készitõ nevét nem tudom
By ZeRoX