Advertisement
Guest User

Untitled

a guest
Jan 21st, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. CMD:duotiginkla(playerid,params[])
  2. {
  3. if(playerDB[playerid][admin]>=3)
  4. {
  5. new tmp,tmp2,tmp3;
  6. if(sscanf(params,"udd",tmp,tmp2,tmp3)) return SendClientMessage(playerid,HINT_COLOR,"* Duoti zaidejui ginkla: /duotiginkla [Zaidejo ID/vardo dalis][Ginklo ID][Amunicijos skaicius]");
  7. else if(!IsPlayerConnected(tmp)) return SendClientMessage(playerid,ERROR_COLOR,"* Tokio zaidejo nera");
  8. else if(tmp2<1 || tmp2>46) return SendClientMessage(playerid,ERROR_COLOR,"* Tokio ginklo ID nera");
  9. else
  10. {
  11. GivePlayerWeaponA(tmp,tmp2,tmp3);
  12. SendClientMessage(tmp,COLOR,"* Administratorius dave tau ginkla");
  13. }
  14. }
  15. return 1;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement