Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:solo(playerid,cmdtext[])
- {
- new gracz, bron;
- if(sscanf(cmdtext, "ud", gracz, bron))
- {
- SendClientMessage(playerid, COLOR_WHITE, "|Solo| /Solo [ID_gracza] [ID_broni]");
- return 1;
- }
- if(!IsPlayerConnected(gracz))
- {
- SendClientMessage(playerid, COLOR_WHITE, "|Solo| Ten gracz nie jest Online !");
- return 1;
- }
- if(gracz == playerid)
- {
- SendClientMessage(playerid, COLOR_WHITE, "|Solo| Nie możesz sam siebie wyzwać na solo!");
- return 1;
- }
- if(bron < 0 || bron > 46)
- {
- SendClientMessage(playerid, COLOR_WHITE, "|Solo| Wybierz broń o id (0-46)");
- return 1;
- }
- else
- {
- SetPVarInt(gracz, "Bron", bron);
- WalczyZID[gracz] = playerid;
- new str[128];
- format(str,128,"Gracz %s wyzywa Ciebie na solówkę. Dostaniesz broń %i\nCzy zgadzasz się na to?",gGracz[playerid][Nick], bron);
- ShowPlayerDialog(gracz,2000,DIALOG_STYLE_MSGBOX,"Solo",str,"Tak","Nie");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment