SA-MP Forums Archive
Spawning Help! - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Spawning Help! (/showthread.php?tid=91976)



Spawning Help! - Eazy_Efolife - 17.08.2009

=0 Its my first time asking for scripting help, but anyway.
I decided not to ask in Ladmin post because, I added something to it.
This Happened on my other script I made too, Code:
Код:
if(PlayerInfo[playerid][Frozen] == 1) {
		TogglePlayerControllable(playerid,false); return SendClientMessage(playerid,red,"You cant escape your punishment. You Are Still Frozen");
	}
  if(PlayerInfo[playerid][gteam] == 1) {
		SetPlayerSkin( playerid, 280 );
	}
	if(PlayerInfo[playerid][Jailed] == 1) {
	  SetTimerEx("JailPlayer",3000,0,"d",playerid); return SendClientMessage(playerid,red,"You cant escape your punishment. You Are Still In Jail");
	}
The Thing I added was gteam, but the

Код:
if(PlayerInfo[playerid][Jailed] == 1)
and the
Код:
if(PlayerInfo[playerid][Frozen] == 1)
Work when I spawn but when I do the gteam i doesnt work
im trying to make a officer spawn with the skin 280 under OnPlayerSpawn!
It Compiles Perfectly Too
Can Someone help to tell me what I did wrong to make my officer spawn not work?



Re: Spawning Help! - coole210 - 18.08.2009

pawn Код:
if(gteam[playerid] == 1) {
SetPlayerSkin(playerid,280);
return 1;
}
//OnPlayerSpawn >.>
EDIT: Click here for wiki on how to make a team deathmatch


Re: Spawning Help! - XCultz - 18.08.2009

Good luck