Help, +Rep
#1

I want to CreateObject once I pass through the radius of the IsPlayerInRangeOfPoint(playerid, 1.0, 172.67, -151.92, 1.81)) - I've tried creating the object, however I'm not doing something good:

Код:
	public OnPlayerSpawn(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 1.0, 172.67, -151.92, 1.81))
   	pObject2[playerid] = CreatePlayerObject(playerid, 12923, 158.3594, -176.3047, 5.5703, 0, 0, 0, 300.0);
	return 1;
}
Reply
#2

try:

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid, 1.0, 172.67, -151.92, 1.81))
    {
        pObject2[playerid] = CreatePlayerObject(playerid, 12923, 158.3594, -176.3047, 5.5703, 0, 0, 0, 300.0);
        print("Object created"); //check in the rcon console for this message upon spawning
    }
    return 1;
}
Reply
#3

IsPlayerInRangeOfPoint won't work under OnPlayerSpawn. Read this
https://sampforum.blast.hk/showthread.php?tid=358162
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)