21.06.2012, 14:26
pawn Код:
if(dialogid == 4)
{
if(!response) return ShowPlayerDialog(playerid,-1,0,"","","","");
if(response)
{
switch(listitem)
{
case 0:
{
if(IsInvincible[playerid] == 1)
{
SendClientMessage(playerid,-1,"You need to wait 50 Secods before using this class again");
//Here you saying that if the player is invicible than u should wait 50 sec but you didn't put any code for making the timer true
}
else if(IsInvincible[playerid] == 0)
{
IsInvincible[playerid] = 1;
ClassSelectedInvin[playerid] = 1;
SendClientMessage(playerid, -1, "Invincible Class Activated");
SendClientMessage(playerid,-1, "Press Jump_Key To Activated Invincible Mode");
SetTimerEx("ClassTimerInvin",50000,false,"i",0);
}
}
}
}
}