/changes command
#1

can someone help me make this command into a dialog please.. I can't figure it out
PHP код:
    if(strcmp(cmd"/changes"true) == 0// By Godzilla8957
    
{
        if(
IsPlayerConnected(playerid))
        if(
IsPlayerInRangeOfPoint(playerid3.01953.1575,-1764.6626,13.5469))
        {
            
SendClientMessage(playeridCOLOR_YELLOW"=====|Current Script Version 0.1=====|");
            
SendClientMessage(playeridCOLOR_YELLOW"- New Mappings By Ryan_Clarke");
            
SendClientMessage(playeridCOLOR_YELLOW"- All Houses Have Been Edited");
            
SendClientMessage(playeridCOLOR_YELLOW"- All Houses Have An Andress Now");
            
SendClientMessage(playeridCOLOR_YELLOW"|====================================|");
        }
        return 
1;
    } 
Reply
#2

pawn Код:
if(strcmp(cmd, "/changes", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        if(IsPlayerInRangeOfPoint(playerid, 3.0, 1953.1575,-1764.6626,13.5469))
        {
            new string[952];
            strcat(string, "{COLOR_YELLOW}- New Mappings By Ryan_Clarke\n");
            strcat(string, "{COLOR_YELLOW}- All Houses Have Been Edited\n");
            strcat(string, "{COLOR_YELLOW}- All Houses Have An Andress Now\n");
            ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "{COLOR_YELLOW}|=====|Current Script Version 0.1=====|", string, "Close", "");
        }
        return 1;
    }
Try This?
Reply
#3

pawn Код:
if(strcmp(cmd, "/changes", true) == 0) // By Godzilla8957
    {
        if(IsPlayerConnected(playerid))
        if(IsPlayerInRangeOfPoint(playerid, 3.0, 1953.1575,-1764.6626,13.5469))
        {
        ShowPlayerDialog(playerid,999,DIALOG_STYLE_MSGBOX,"Current Script Version 0.1","New Mappings By Ryan_Clarke \n All Houses Have Been Edited \n All Houses Have An Andress Now","Close","");
        }
        return 1;
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)