Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerSpawn(playerid)
- {
- if(IsPlayerNPC(playerid))
- {
- new name[24];
- GetPlayerName(playerid, name, 24);
- if(EnterBotToVehicle[playerid])
- {
- if(!strcmp(name, "Dave", true))
- {
- SetPlayerColor(playerid,0xFFFFFF00);
- PutPlayerInVehicle(playerid, 1, 0);
- }
- }
- return 1;
- }
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- if(IsPlayerNPC(playerid)) return 1;
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- if(IsPlayerNPC(playerid)) return 1;
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- if(IsPlayerNPC(playerid)) return 1;
- return 1;
- }
- public OnGameModeInit()
- {
- ConnectNPC("Dave","TaxiTester");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement