Stay within the worl boundries
#1

Hey guys, after creating a new script, when testing, my samp just got screwed...

See this image

I got this so far:

pawn Код:
#include <a_samp>

public OnGameModeInit()
{
    DisableInteriorEnterExits();
    printf("Server loaded");
    return 1;
}

public OnPlayerSpawn(playerid)
{
    SendClientMessage(playerid,-1,"You spawned");
    return 1;
}
Reply
#2

Try adding:

pawn Код:
AddPlayerClass(0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
in OnGameModeInit, or anything similar to that. It should remove the world boundaries issue.
Reply
#3

Try adding AddPlayerClass.
https://sampwiki.blast.hk/wiki/AddPlayerClass
Reply
#4

It's working now guys! Thanks!
Reply
#5

You need a PlayerClass, Because the code you provided spawns the player in an oddball location.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)