Advertisement
Guest User

Untitled

a guest
May 14th, 2012
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. public OnPlayerSpawn(playerid)
  2. {
  3.  
  4. if(IsPlayerNPC(playerid))
  5. {
  6. new name[24];
  7. GetPlayerName(playerid, name, 24);
  8. if(EnterBotToVehicle[playerid])
  9. {
  10. if(!strcmp(name, "Dave", true))
  11. {
  12. SetPlayerColor(playerid,0xFFFFFF00);
  13. PutPlayerInVehicle(playerid, 1, 0);
  14. }
  15. }
  16. return 1;
  17. }
  18. return 1;
  19. }
  20.  
  21. public OnPlayerConnect(playerid)
  22. {
  23. if(IsPlayerNPC(playerid)) return 1;
  24. return 1;
  25. }
  26.  
  27. public OnPlayerRequestSpawn(playerid)
  28. {
  29. if(IsPlayerNPC(playerid)) return 1;
  30. return 1;
  31. }
  32.  
  33. public OnPlayerRequestClass(playerid, classid)
  34. {
  35. if(IsPlayerNPC(playerid)) return 1;
  36. return 1;
  37. }
  38. public OnGameModeInit()
  39. {
  40. ConnectNPC("Dave","TaxiTester");
  41. return 1;
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement