SA-MP Forums Archive
[HELP]Gangwar problem.. - 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: [HELP]Gangwar problem.. (/showthread.php?tid=136160)



[HELP]Gangwar problem.. - Sajtos - 23.03.2010

Hi all!

i have a problem.



Код:
  	if (strcmp("/police", cmdtext, true, 10) == 0)
	{
	ResetPlayerWeapons(playerid);
	GivePlayerWeapon(playerid, 26, 1000);
	GivePlayerWeapon(playerid, 28, 1000);
	GivePlayerWeapon(playerid, 30, 1000);
	SetPlayerTeam(playerid, 5);
	SetPlayerPos(playerid, 1579.3662,-1635.3933,17.9324);
	SetPlayerFacingAngle(playerid, 342.3749);
	SetPlayerSkin(playerid, 280);
	SetPlayerHealth(playerid, 100);
  SetPlayerArmour(playerid, 100);
	SetPlayerColor(playerid,0x0000FFAA);
	SendClientMessage(playerid, 0x0000FFAA, "You joined the POLICE-TEAM!");
	SendClientMessage(playerid, 0xFFFFFFAA, "Use /exitgw to exit gangwar!");
	return 1;
	}
this is my gangwar option. this is perfect but if a player is dead does not teleporting back to the original location----> SetPlayerPos(playerid, 1579.3662,-1635.3933,17.9324);

what do i wrong?

ps: sry for my bad english i used ****** translater.


Re: [HELP]Gangwar problem.. - Sajtos - 24.03.2010

pls somebody help me