03.04.2010, 14:36
Hello, i did make what at command enter and exit but it don't show the text :S
maybe you know the bugg?
thanks
maybe you know the bugg?
pawn Код:
if (strcmp(cmd, "/enter", true) ==0)
{
if(IsPlayerInRangeOfPoint(playerid, 4, HouseInfo[playerid][hEntrancex], HouseInfo[playerid][hEntrancey], HouseInfo[playerid][hEntrancez]))
{
SendClientMessage(playerid, COLOR_RED, "Press Enter or F to enter your house!");
}
if(IsPlayerInRangeOfPoint(playerid, 6, BusinessInfo[playerid][bEntrancex], BusinessInfo[playerid][bEntrancey], BusinessInfo[playerid][bEntrancez]))
{
SendClientMessage(playerid, COLOR_RED, "Press Enter or F to enter your Business!");
}
return 1;
}
pawn Код:
if (strcmp(cmd, "/exit", true) ==0)
{
if(IsPlayerInRangeOfPoint(playerid, 4, HouseInfo[playerid][hExitx], HouseInfo[playerid][hExity], HouseInfo[playerid][hExitz]))
{
SendClientMessage(playerid, COLOR_RED, "Press Enter or F to exit your house!");
}
if(IsPlayerInRangeOfPoint(playerid, 6, BusinessInfo[playerid][bExitx], BusinessInfo[playerid][bExity], BusinessInfo[playerid][bExitz]))
{
SendClientMessage(playerid, COLOR_RED, "Press Enter or F to exit your Business!");
}
return 1;
}