Guest User

Untitled

a guest
Jan 10th, 2014
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. YCMD:lampa1(playerid, params[], help)
  2. {
  3.  
  4. if(IsPlayerConnected(playerid))
  5. {
  6. if(PlayerInfo[playerid][pLider] == 1 || PlayerInfo[playerid][pClan] == 1)
  7. {
  8. if(IsPlayerAttachedObjectSlotUsed(playerid,LAMPA_SLOT)) RemovePlayerAttachedObject(playerid,LAMPA_SLOT);
  9. if(IsPlayerAttachedObjectSlotUsed(playerid,LAMPA_SLOT1)) RemovePlayerAttachedObject(playerid,LAMPA_SLOT1);
  10. SetPlayerAttachedObject(playerid, LAMPA_SLOT,18656, 5, 0.1, 0.038, -0.1, -90, 180, 0, 0.03, 0.03, 0.03);
  11. SetPlayerAttachedObject(playerid, LAMPA_SLOT1,18641, 5, 0.1, 0.02, -0.05, 0, 0, 0, 1, 1, 1);
  12.  
  13. SendClientMessage(playerid, 0x33CCFFAA, "[I:RP] Stavili Ste Lampu na sebe "); ////EROR I OVDE
  14. }
  15. }
  16. }
  17. else
  18. {
  19. SendClientMessage(playerid, 0x33CCFFAA, "[I:RP] Samo Policija "); //////EROR OVDE
  20. }
  21. return 1;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment