Making players having to wait SOME TIME before moving to NEXT STEPS
#4

You mean something like this?
pawn Код:
forward RobTimer(playerid);
public OnPlayerCommandText(playerid, cmdtext[])
{    
    if(!strcmp(cmdtext, "/Robbery", true))    
    {    
        GameTextForPlayer(playerid, "~Y~You are Attempting to ~r~ Hack ~y~ Bank Door ~n~ ~g~ You have to wait...", 30000, 5);    
        TogglePlayerControllable(playerid,0); //Freeze the player or do what ever you want to do..
        SetTimerEx("RobTimer", 30000, false, "i", playerid);  
        return 1;
    }    
    return 0;
}
public RobTimer(playerid)
{
    TogglePlayerControllable(playerid,1);
    SendClientMessage(playerid,-1,"Run before the cops comes!");
    GivePlayerMoney(playerid,100000);
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)