/help carshop - Only usable at a certain area - Help! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /help carshop - Only usable at a certain area - Help! (
/showthread.php?tid=73512)
/help carshop - Only usable at a certain area - Help! -
nickbugun - 15.04.2009
I want to make that if a player is in an area and types /help carshop, the help menu shows up.
And if he is not in the area, it says unknown command.
This is what I made but it shows me a message even when i am not at the area.
Quote:
if(strcmp(cmdtext, "/help carshop", true) == 0)
{
if(IsAtCarshop(playerid, 0))
SendClientMessage(playerid,blue,"[!] Find a Car Dealer, and see what vehicles he has for sale.");
}
|
Quote:
public IsAtCarshop(playerid, areaid)
{
if(IsPlayerConnected(playerid))
{
if(areaid == Carshop)
return 1;
}
return 1;
}
|
Re: /help carshop - Only usable at a certain area - Help! -
OmeRinG - 15.04.2009
what the hell is this:
pawn Код:
public IsAtCarshop(playerid, areaid)
{
if(IsPlayerConnected(playerid))
{
if(areaid == Carshop)
return 1;
}
return 1;
}
try to use PlayerToPoint instead....