15.04.2009, 18:41
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.
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; } |