04.03.2014, 14:10
Hey guys i want to create a gametext for player if hes at a door but i couldnt find out how.. so i would like to get help from here
Thanks
Thanks
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;
}