Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:duotiginkla(playerid,params[])
- {
- if(playerDB[playerid][admin]>=3)
- {
- new tmp,tmp2,tmp3;
- if(sscanf(params,"udd",tmp,tmp2,tmp3)) return SendClientMessage(playerid,HINT_COLOR,"* Duoti zaidejui ginkla: /duotiginkla [Zaidejo ID/vardo dalis][Ginklo ID][Amunicijos skaicius]");
- else if(!IsPlayerConnected(tmp)) return SendClientMessage(playerid,ERROR_COLOR,"* Tokio zaidejo nera");
- else if(tmp2<1 || tmp2>46) return SendClientMessage(playerid,ERROR_COLOR,"* Tokio ginklo ID nera");
- else
- {
- GivePlayerWeaponA(tmp,tmp2,tmp3);
- SendClientMessage(tmp,COLOR,"* Administratorius dave tau ginkla");
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement