05.09.2012, 10:43
hello, i have a piece of code here which i would like in dialog. (i mean all the messages) it appear when player spawns so whenever player choose role as theif and spawn all the messages appear to them in a dialog instead in chatbox.
Any help is kind and appricieated.
pawn Код:
new rname[MAX_PLAYER_NAME];
GetPlayerName(playerid, rname, sizeof(rname));
if(GetPlayerMenu(playerid) == Roles)
{
switch(row)
{
case 0: // Thief
{
SetPlayerTeam(playerid, THIEF);
SendClientMessage(playerid, LIGHT_BLUE, "You made your choice. You are now a Thief.");
SendClientMessage(playerid, LIGHT_BLUE, "As a Thief, you need to rob things.");
SendClientMessage(playerid, LIGHT_BLUE, "To see your role's commands, type: /rcommands");
ChoosingRole[playerid] = 0;
TogglePlayerControllable(playerid, true);
GivePlayerWeapon(playerid, 4, 1);
GivePlayerWeapon(playerid, 24, 100);
GivePlayerWeapon(playerid, 29, 250);
}