19.05.2009, 19:55
Hey guys,
I got this code from the Morderntopia script, and I tried to make it on my own gamemode.
SQL etc is all plugged in, but when I login and spawn it spams the message at about 20 messages a second, also lagging me!
Does anyone know what I've done wrong? It's been a few months since I was a scritping addict .
Thanks.
-Franjdea
I got this code from the Morderntopia script, and I tried to make it on my own gamemode.
pawn Код:
public OnPlayerSpawn(playerid)
{
gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team
if(gTeam[playerid] == 11 && PlayerInfo[playerid][pLeader] > 0) // LEADER
{
SendClientMessage(playerid, COLOR_LIGHTRED, "It Works - Welcome Homicide Detective Leader!");
SetSpawnInfo(playerid, gTeam[playerid], 240,-204.0065,1153.0325,19.7422,23,51,0,0,0,0,0);
SpawnPlayer(playerid);
}
return 1;
}
Does anyone know what I've done wrong? It's been a few months since I was a scritping addict .
Thanks.
-Franjdea