20.03.2012, 03:44
Hello!
I wonder how to load all the stores from the database to a IsPlayerInRangeOfPoint. Want it to check if a player is close to a store that is in the database. If they writes "/ buy" it should then check if the user is at a store or not with a "CheckIfUserIsnearAStore ()".
Someting like this:
I use this gamemode: https://sampforum.blast.hk/showthread.php?tid=285755
Best regards, Tomas
I wonder how to load all the stores from the database to a IsPlayerInRangeOfPoint. Want it to check if a player is close to a store that is in the database. If they writes "/ buy" it should then check if the user is at a store or not with a "CheckIfUserIsnearAStore ()".
Someting like this:
Код:
if (CheckIfUserIsnearAStore (playerid)) { SendClientMessage(playerid, COLOR_GREEN, "You are in a business that is stored in the mysql database"); }
Best regards, Tomas