26.11.2010, 00:10
(
Последний раз редактировалось marinov; 26.11.2010 в 01:09.
)
I have this :
but after the player types the password it won't go away, then the player has to cancel it
pawn Код:
if(dialogid == JOINVIP)
{
if(response)
{
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, JOINVIP, DIALOG_STYLE_INPUT, "Please enter the password to join UC.", "Password:", "Submit", "Cancel");
else if(!strcmp(inputtext, "passowrd", true))
{
team[playerid] = 8;
ShowPlayerDialog(playerid, JOINVIP, DIALOG_STYLE_INPUT, "Please enter the password to join V.I.P.", "Password:", "Submit", "Cancel");
SendClientMessage(playerid,GREEN,"You may now spawn.");
SetPlayerColor(playerid,BLUE);
SetPlayerTeam(playerid, 1);
SetPlayerFacingAngle(playerid,5.6779);
GivePlayerWeapon(playerid,31,300);
GivePlayerWeapon(playerid,24,300);
GivePlayerMoney(playerid, 20000);
SetPlayerInterior(playerid,0);
SetPlayerArmour(playerid, 100);
return 1;
}
}
else SendClientMessage(playerid, 0xff0000FF,"Cancelled");
}
return 0;
}