Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnGameModeInit()
- {
- //BOTS & NPC
- ConnectNPC("Polizist","policerec");
- car_policerec = CreateVehicle(523, 1000.0,1000.0, 1000.0, 0.0, 10, 1, -1);
- }
- public OnPlayerConnect(playerid)
- {
- //NPC BOT ABFRAGE
- if(IsPlayerNPC(playerid)) return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- if(IsPlayerNPC(playerid)) return 1;
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- //NPC SKIN
- if(IsPlayerNPC(playerid))
- {
- new botname[MAX_PLAYER_NAME];
- GetPlayerName(playerid,botname,sizeof(botname));
- if(!strcmp(botname,"Polizist",true))
- {
- PutPlayerInVehicle(playerid, car_policerec, 0);
- SetPlayerSkin(playerid,284);
- GivePlayerWeapon(playerid,23,1);
- SetPlayerVirtualWorld(playerid,0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement