25.03.2010, 12:59
Quote:
Originally Posted by jaheem
i have ben tring to make DIALOG_STYLE_INPUT AGE dialog but i faild
do any one can help me plz |
Originally Posted by jaheem
i have ben tring to make DIALOG_STYLE_INPUT AGE dialog but i faild
do any one can help me plz |
Originally Posted by XxCozzaxX
Can i request a Spikestrips function using RC5?
UpdateVehicleDamageStatus Is how it would work i assume? |
Originally Posted by Brendan_Thomson
|
Originally Posted by [ĦŁ₣
|
Originally Posted by [ĦŁ₣
ЉǾǖŦĦЗŁΛẄ ]
Here's that script Edit of my old one, I released ages ago on forums Some bugs fixed like if a player that is being spectated disconnects And added your feature, so if your killer dies then you spectate his killer and if they die they you spectate their killer. Plus if player just dies then they can wither re-spawn instantly or have their camera look over a position of your choice, that is in the defines. Report bugs to me by PM, and tell me if i should release this, I chose not to as there's millions of these anyway Pastie: http://southclaw.pastebin.com/UAD0PHb5 |
Originally Posted by Denasdc
blah blah blah(write a book about it)
|
Originally Posted by [03
Garsino ]
Quote:
|
new buyername[24]; GetPlayerName(playerid,buyername, 24); if(dialogid == GROTTI_DIALOG) { if(listitem == 0) { if(GetPlayerMoney(playerid) <= 39999) { SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|"); SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Sultan car ($40000)"); return 1; } new boughtcar; GetPlayerName(playerid,buyername,24); boughtcar = CreateVehicle(560, 2174.2114,1421.0642,10.5913,91.0247, -1, -1, 99999999999); BoughtCars[boughtcar] =999; BoughtCarsOwner[boughtcar] =playerid; SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|"); SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Sultan vehicle from AutoBahn for $40000"); GivePlayerMoney(playerid,-40000); PutPlayerInVehicle(playerid, boughtcar, 0); printf("**(CAR PURCHASE)** %s(%d) has purchased a Sultan car from AutoBahn ($40000)",buyername,playerid); } if(listitem == 1) { if(GetPlayerMoney(playerid) <= 59999) { SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|"); SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Elegy car ($60000)"); return 1; } new boughtcar; GetPlayerName(playerid,buyername,24); boughtcar = CreateVehicle(562, 560.4965,-1286.8813,16.9363,8.4817, -1, -1, 99999999999); BoughtCars[boughtcar] =999; BoughtCarsOwner[boughtcar] =playerid; SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|"); SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Elegy vehicle from AutoBahn for $60000"); GivePlayerMoney(playerid,-60000); PutPlayerInVehicle(playerid, boughtcar, 0); printf("**(CAR PURCHASE)** %s(%d) has purchased a Elegy car from AutoBahn ($60000)",buyername,playerid); } if(listitem==2) { if(GetPlayerMoney(playerid) <= 79999) { SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|"); SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Jester car ($80000)"); return 1; } new boughtcar; GetPlayerName(playerid,buyername,24); boughtcar = CreateVehicle(559, 560.4965,-1286.8813,16.9363,8.4817, -1, -1, 99999999999); BoughtCars[boughtcar] =999; BoughtCarsOwner[boughtcar] =playerid; SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|"); SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Jester vehicle from AutoBahn for $80000"); GivePlayerMoney(playerid,-80000); PutPlayerInVehicle(playerid, boughtcar, 0); printf("**(CAR PURCHASE)** %s(%d) has purchased a Jester car from AutoBahn ($80000)",buyername,playerid); } if(listitem==3) { if(GetPlayerMoney(playerid) <= 99999) { SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|"); SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Cheetah car ($100000)"); return 1; } new boughtcar; GetPlayerName(playerid,buyername,24); boughtcar = CreateVehicle(415, 560.4965,-1286.8813,16.9363,8.4817, -1, -1, 99999999999); BoughtCars[boughtcar] =999; BoughtCarsOwner[boughtcar] =playerid; SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|"); SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Cheetah vehicle from AutoBahn for $100000"); GivePlayerMoney(playerid,-100000); PutPlayerInVehicle(playerid, boughtcar, 0); printf("**(CAR PURCHASE)** %s(%d) has purchased a Cheetah car from AutoBahn ($100000)",buyername,playerid); } if(listitem==4) { if(GetPlayerMoney(playerid) <= 119999) { SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|"); SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Turismo car ($120000)"); return 1; } new boughtcar; GetPlayerName(playerid,buyername,24); boughtcar = CreateVehicle(451, 560.4965,-1286.8813,16.9363,8.4817, -1, -1, 99999999999); BoughtCars[boughtcar] =999; BoughtCarsOwner[boughtcar] =playerid; SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|"); SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Turismo vehicle from AutoBahn for $120000"); GivePlayerMoney(playerid,-120000); PutPlayerInVehicle(playerid, boughtcar, 0); printf("**(CAR PURCHASE)** %s(%d) has purchased a Turismo car from AutoBahn ($120000)",buyername,playerid); } if(listitem==5) { if(GetPlayerMoney(playerid) <= 139999) { SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|"); SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Infernus vehicle ($140000)"); return 1; } new boughtcar; GetPlayerName(playerid,buyername,24); boughtcar = CreateVehicle(411, 560.4965,-1286.8813,16.9363,8.4817, -1, -1, 99999999999); BoughtCars[boughtcar] =999; BoughtCarsOwner[boughtcar] =playerid; SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|"); SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Infernus vehicle from AutoBahn for $140000"); GivePlayerMoney(playerid,-140000); PutPlayerInVehicle(playerid, boughtcar, 0); printf("**(CAR PURCHASE)** %s(%d) has purchased a Infernus vehicle from AutoBahn ($140000)",buyername,playerid); } if(listitem==6) { if(GetPlayerMoney(playerid) <= 139999) { SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|"); SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a NRG500 motorbike ($140000)"); return 1; } new boughtcar; GetPlayerName(playerid,buyername,24); boughtcar = CreateVehicle(522, 560.4965,-1286.8813,16.9363,8.4817, -1, -1, 99999999999); BoughtCars[boughtcar] =999; BoughtCarsOwner[boughtcar] =playerid; SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|"); SendClientMessage(playerid, 0x00C7FFAA, "You have bought a NRG500 motorbike from AutoBahn for $140000"); GivePlayerMoney(playerid,-140000); PutPlayerInVehicle(playerid, boughtcar, 0); printf("**(CAR PURCHASE)** %s(%d) has purchased a NRG500 motorbike from AutoBahn ($140000)",buyername,playerid); } if(listitem==7) { if(GetPlayerMoney(playerid) <= 139999) { SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|"); SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a FCR-900 motorbike ($140000)"); return 1; } new boughtcar; GetPlayerName(playerid,buyername,24); boughtcar = CreateVehicle(521, 560.4965,-1286.8813,16.9363,8.4817, -1, -1, 99999999999); BoughtCars[boughtcar] =999; BoughtCarsOwner[boughtcar] =playerid; SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|"); SendClientMessage(playerid, 0x00C7FFAA, "You have bought a FCR-900 motorbike from AutoBahn for $140000"); GivePlayerMoney(playerid,-140000); PutPlayerInVehicle(playerid, boughtcar, 0); printf("**(CAR PURCHASE)** %s(%d) has purchased a FCR-900 motorbike from AutoBahn ($140000)",buyername,playerid); } if(listitem==8) { if(GetPlayerMoney(playerid) <= 139999) { SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|"); SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Taxi ($100000)"); return 1; } new boughtcar; GetPlayerName(playerid,buyername,24); boughtcar = CreateVehicle(420, 560.4965,-1286.8813,16.9363,8.4817, -1, -1, 99999999999); BoughtCars[boughtcar] =999; BoughtCarsOwner[boughtcar] =playerid; SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|"); SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Taxi from AutoBahn for $100000"); GivePlayerMoney(playerid,-140000); PutPlayerInVehicle(playerid, boughtcar, 0); printf("**(CAR PURCHASE)** %s(%d) has purchased a Taxi from AutoBahn ($100000)",buyername,playerid); } if(listitem==9) { if(GetPlayerMoney(playerid) <= 49999) { SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|"); SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Uranus vehicle ($50000)"); return 1; } new boughtcar; GetPlayerName(playerid,buyername,24); boughtcar = CreateVehicle(558, 560.4965,-1286.8813,16.9363,8.4817, -1, -1, 99999999999); BoughtCars[boughtcar] =999; BoughtCarsOwner[boughtcar] =playerid; SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|"); SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Uranus vehicle from AutoBahn for $50000"); GivePlayerMoney(playerid,-50000); PutPlayerInVehicle(playerid, boughtcar, 0); printf("**(CAR PURCHASE)** %s(%d) has purchased a Uranus car from AutoBahn ($50000)",buyername,playerid); } if(listitem==10) { if(GetPlayerMoney(playerid) <= 49999) { SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|"); SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a BMX bike ($100)"); return 1; } new boughtcar; GetPlayerName(playerid,buyername,24); boughtcar = CreateVehicle(481, 560.4965,-1286.8813,16.9363,8.4817, -1, -1, 99999999999); BoughtCars[boughtcar] =999; BoughtCarsOwner[boughtcar] =playerid; SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|"); SendClientMessage(playerid, 0x00C7FFAA, "You have bought a BMX bike from AutoBahn for $100"); GivePlayerMoney(playerid,-50000); PutPlayerInVehicle(playerid, boughtcar, 0); printf("**(CAR PURCHASE)** %s(%d) has purchased a BMX bike from AutoBahn ($100)",buyername,playerid); } } return 1; }
Originally Posted by biltong
You'll have to give each car a unique ID, because if your server restarts every vehicle will have a different ID depending on which spawns first, or if a vehicle is destroyed and another one is spawned, that vehicle takes it's ID.
|