IsAtNameChange(playerid)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInRangeOfPoint(playerid, 3.0,1154.7295,-1440.2323,15.7969))
{
return 1;
}
}
return 0;
}
IsAtNameChange(playerid)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInRangeOfPoint(playerid, 3.0,1488.7249,-1771.5569,18.7958))
{
return 1;
}
}
return 0;
}
CMD:changename(playerid, params[])
{
if(IsAtNameChange(playerid) && PlayerInfo[playerid][pLevel] == 1)
{
ShowPlayerDialog( playerid, DIALOG_NAMECHANGE, DIALOG_STYLE_INPUT, "Name Change","Please enter your new desired name!\n\nNote: Name Changes cost $15,000 per level.", "Change", "Cancel" );
}
else
{
SendClientMessageEx( playerid, COLOR_WHITE, " You are not in the Name Change Place, or above level 1" );
}
return 1;
}
IsAtNameChange(playerid, interiorid, virtual_world)
{
return IsPlayerInRangeOfPoint(playerid, 3.0, 1488.7249 ,-1771.5569, 18.7958) && GetPlayerInterior(playerid) == interiorid && GetPlayerVirtualWorld(playerid) == virtual_world;
}
if (IsAtNameChange(playerid, 0, 1))
I posted the OLD Code too. You can see it. If i put OLd one, It works perfectly.
I just replace the X Y Z thats it |