06.09.2012, 16:00
Well basically, the dialog is supposed to show up when a player spawns a civilian and choose the role "Theif" but idk wahts wrong, coz it does not shows up..
if i use SendClientMessage it does work, but i want it in dialog please tell me what wrong am i doing ??
Please help..
if i use SendClientMessage it does work, but i want it in dialog please tell me what wrong am i doing ??
Please help..
pawn Код:
new rname[MAX_PLAYER_NAME];
GetPlayerName(playerid, rname, sizeof(rname));
if(GetPlayerMenu(playerid) == Roles)
{
switch(row)
{
case 0: // Thief
{
SetPlayerTeam(playerid, THIEF);
ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX ,"Theif","You made your choice\nYou are now a Thief\nAs a Thief, you need to rob things\nTo see your role's commands, /rcommands","Ok","Cancel");
ChoosingRole[playerid] = 0;
TogglePlayerControllable(playerid, true);
GivePlayerWeapon(playerid, 4, 1);
GivePlayerWeapon(playerid, 24, 100);
GivePlayerWeapon(playerid, 29, 250);
}