SA-MP Forums Archive
"Stay Within the World Boundries" - 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)
+--- Thread: "Stay Within the World Boundries" (/showthread.php?tid=341964)



"Stay Within the World Boundries" - Verbal - 12.05.2012

Something very weird happened. After I select player and pressed "Spawn" (OnPlayerRequestSpawn) I got "Stay Within the World Boundries" like million times on a TextDraw or something..
Here's my OnPlayerRequestSpawn public:
pawn Код:
public OnPlayerRequestSpawn(playerid) {
    // Stats
    format(str, sizeof(str), "   Phone: %d        Money: %d        Bank Money: %d        Payday: %d", PlayerInfo[playerid][pPhone], PlayerInfo[playerid][pMoney], PlayerInfo[playerid][pBankMoney], PlayerInfo[playerid][pPayday]);
    StatsText[playerid] = TextDrawCreate(0.0, 436.0, str);
    TextDrawFont(StatsText[playerid], 1);
    TextDrawColor(StatsText[playerid], 0xFFFFFFAA);
    TextDrawUseBox(StatsText[playerid], 1);
    TextDrawBoxColor(StatsText[playerid], 0x000000AA);
    TextDrawSetShadow(StatsText[playerid], 1);
    TextDrawShowForPlayer(playerid, StatsText[playerid]);
   
    SetTimerEx("SetSkin", 1, false, "d", playerid);
    return 1;
}



Re: "Stay Within the World Boundries" - CidadeNovaRP - 12.05.2012

Need "AddPlayerClass" in OnGameModeInit.


Re: "Stay Within the World Boundries" - Faisal_khan - 12.05.2012

Yeah you must be missing:
pawn Код:
AddPlayerClass(skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)
under
pawn Код:
public OnGameModeInit()



Re: "Stay Within the World Boundries" - Verbal - 12.05.2012

Thanks.