Create Gametextfor player if hes near a door
#7

In the else, you open a bracket but you never close it. But since it's just a function, no need for brackets.

pawn Код:
CMD:halockers(playeridm params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 3.0, 1601.8799,-2547.0332,-24.4324))
    {
        ShowPlayerDialog(playerid,723,DIALOG_STYLE_LIST,"Hitman Agency Lockers","Knife\nDeagle\nSniper Rifle","Close","");
    }
    else SendClientMessage(playerid,COLOR_GREEN,"You are not near Hitman Agency Lockers!");
    return 1;
}

CMD:exitha(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 1.0, 1592.96375 -2553.85034 -24.52250))
    {
        SetPlayerPos(playerid,3375.4758,-993.0410,7.7766,2.0);
    }
    else SendClientMessage(playerid,COLOR_GREEN,"You are not near Hitman Agency Door!");
    return 1;
}
CMD:enterha(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 1.0, 3375.4758,-993.0410,7.7766))
    {
        GameTextForPlayer(playerid, "Welcome to Hitman Agency!", 5000, 2);
        SetPlayerPos(playerid,1592.96375,-2553.85034,-24.52250,2.0);
    }
    else SendClientMessage(playerid,COLOR_GREEN,"You are not near Hitman Agency Door!");
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)