Guest User

Untitled

a guest
Jan 19th, 2015
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #include a_samp
  2.  
  3. new Policjant[MAX_PLAYERS];
  4. new pracapolicja;
  5.  
  6. public OnPlayerPickUpPickup(playerid, pickupid) {
  7.  
  8. if(pickupid == pracapolicja) {
  9.  
  10. new gracz;
  11. policjant[gracz] = 2;
  12. SetPlayerSkin(playerid,267);
  13. GivePlayerWeapon(playerid, 24 , 100);
  14. Policjant[playerid] = true;
  15. SendClientMessage(playerid,0xAFAFAFAA,"Zatrudniłeś się jako Policjant");
  16. }
  17. return 1;
  18. }
  19.  
  20. public OnGameModeInit() {
  21.  
  22. pracapolicja = CreatePickup(1274 , 2 , -2029.5096,153.7565,28.8359, -1);
  23. return 1;
  24. }
  25.  
  26. public OnPlayerDisconnect(playerid, reason) {
  27.  
  28. Policjant[playerid] = false;
  29. return 1;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment