Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <jpd>
- #include <jcmd>
- #include <jcgm>
- #include <sscanf2>
- new
- gCaller[MAX_PLAYERS];
- newCmd:x1(playerid, params[])
- {
- new
- sId,
- sStr[128]
- ;
- if (sscanf(params,"u", sId)) return false;
- format(sStr, 128, "%s está lhe convidando para um duelo.", PWN_GetPlayerName(playerid));
- ShowPlayerDialog(sId, 1, input, "Convite de duelo", sStr, "Confirmar", "Recusar");
- gCaller[sId] = playerid;
- return 1;
- }
- addDialogHandler(1)
- {
- if (!response) return ShowPlayerDialog(gCaller[playerid], 2, msgbox, "Resposta de convite", "Seu convite de duelo foi recusado.", "OK", "");
- else
- {
- //Ele aceitou, aqui tu faz os paranauê pra mandar os dois pra arena...
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment