Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include a_samp
- new Policjant[MAX_PLAYERS];
- new pracapolicja;
- public OnPlayerPickUpPickup(playerid, pickupid) {
- if(pickupid == pracapolicja) {
- new gracz;
- policjant[gracz] = 2;
- SetPlayerSkin(playerid,267);
- GivePlayerWeapon(playerid, 24 , 100);
- Policjant[playerid] = true;
- SendClientMessage(playerid,0xAFAFAFAA,"Zatrudniłeś się jako Policjant");
- }
- return 1;
- }
- public OnGameModeInit() {
- pracapolicja = CreatePickup(1274 , 2 , -2029.5096,153.7565,28.8359, -1);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason) {
- Policjant[playerid] = false;
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment