Guest User

Untitled

a guest
Apr 15th, 2012
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1.  
  2. #define FILTERSCRIPT
  3. #define COLOR_LIGHTBLUE 0x33CCFFAA
  4. #define COLOR_RED 0xAA333AA
  5.  
  6. #include <a_samp>
  7.  
  8.  
  9. #if defined FILTERSCRIPT
  10. new LVRacerCar;
  11. new Text3D:BotInfo;
  12. public OnFilterScriptInit()
  13. {
  14. print("LVRacer v0.1");
  15. ConnectNPC("Offical_Racer","LVRacer");
  16. LVRacerCar = CreateVehicle(411, 0.0, 0.0 ,3.0, 0.0, 3, 3,5000);
  17. BotInfo = Create3DTextLabel("Offical-Racer",COLOR_LIGHTBLUE,0.0,0.0,0.0,30.0,0);
  18. }
  19.  
  20. public OnFilterScriptExit()
  21. {
  22. return 1;
  23. }
  24.  
  25. #else
  26.  
  27. main()
  28. {
  29. print("\n----------------------------------");
  30. print(" Blank Gamemode by your name here");
  31. print("----------------------------------\n");
  32. }
  33.  
  34. #endif
  35.  
  36. public OnPlayerSpawn(playerid)
  37. {
  38. if(IsPlayerNPC(playerid))
  39. {
  40. new npcname[MAX_PLAYER_NAME];
  41. GetPlayerName(playerid, npcname, sizeof(npcname));
  42. SetSpawnInfo( playerid, 0, 181, 2036.3363,1348.1250,10.8203,265.4836, 0, 0, 0, 0, 0, 0 );
  43.  
  44. if(!strcmp(npcname, "Offical_Racer",true))
  45. {
  46. PutPlayerInVehicle(playerid, LVRacerCar, 0);
  47. SetPlayerColor(playerid, 0xFFFFFFFF);
  48. }
  49. if(!strcmp(npcname, "Offical_Racer", true))
  50. {
  51. Attach3DTextLabelToPlayer(BotInfo, playerid, 0.0,0.0,0.0);
  52. }
  53. return 1;
  54. }
  55. return 1;
  56. }
Advertisement
Add Comment
Please, Sign In to add comment