I don't know how to explain this [Picture included]
#1

I scripted 4 teams, and this happend with all the 4 teams. This doesn't happen because of my game, because I don't mod much and my internet connection is alrighty. The spawnpoints are good because when I type /kill it suddenly works perfect. Could someone explain why this happens and how I can fix this?


(This is at SF Carrier ).
Reply
#2

Add this to OnPlayerSpawn

pawn Код:
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
Then try
Reply
#3

Quote:
Originally Posted by Torran
Add this to OnPlayerSpawn

pawn Код:
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
Then try
Pawno crashes when I add it.
It looks like this

pawn Код:
public OnPlayerSpawn(playerid)


   SetPlayerVirtualWorld(playerid, 0);
   SetPlayerInterior(playerid, 0);

{
    if(Killed[playerid] != -1)
    {
        TextDrawShowForPlayer (playerid, Textdraw0);
        TogglePlayerSpectating(playerid, true);
        SetTimerEx("StopSpeccing", 10000, false, "i", playerid);
        if(Killed[playerid] != INVALID_PLAYER_ID)
        {
This is not everything of that part of script.
Reply
#4

pawn Код:
public OnPlayerSpawn(playerid)
{
   SetPlayerVirtualWorld(playerid, 0);
   SetPlayerInterior(playerid, 0);
}
if(Killed[playerid] != -1)
{
TextDrawShowForPlayer (playerid, Textdraw0);
TogglePlayerSpectating(playerid, true);
SetTimerEx("StopSpeccing", 10000, false, "i", playerid);
if(Killed[playerid] != INVALID_PLAYER_ID)
{
Reply
#5

Now it works (I must've done something wrong). And it works in-game, thank you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)