SA-MP Forums Archive
Score for sumo. - 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: Score for sumo. (/showthread.php?tid=229218)



How does this not work? - Duck - 21.02.2011

Код:
RemoveFromGame(playerid, reason[])
{
	new r[100];
	format(r, sizeof®, "[BOT] %s was removed. (Reason: %s)", PlayerName(playerid), reason);
	SendClientMessageToAll(COLOR_NOTICE, r);
	if(!strcmp(reason, "Ragequited", true)) { DestroyVehicle(GetPVarInt(playerid, "Vehicle")); SetPVarInt(playerid, "Vehicle", -1); SetPlayerScore(playerid, 0); return; }
	TogglePlayerSpectating(playerid, true);
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
	    if(GetPVarInt(playerid, "Spawned") == 1 && i != playerid && IsPlayerConnected(i))
	    {
	        PlayerSpectateVehicle(playerid, GetPlayerVehicleID(i));
	        break;
		}
		if(i == MAX_PLAYERS)
		{
			PlayerSpectatePlayer(playerid, playerid);
		}
	}
	SetPVarInt(playerid, "Spawned", 0);
	DestroyVehicle(GetPVarInt(playerid, "Vehicle"));
	SetPVarInt(playerid, "Vehicle", -1);
	SetPlayerColor(playerid, COLOR_GREY);
	SetPlayerScore(playerid, 0);
	GameTextForPlayer(playerid, "~r~Eliminated~w~~n~~n~You will respawn in a million seconds.", 5000, 5);
	SetTimerEx("SpawnPlayerEx", 15000, false, "ii", 0, playerid);


It doens't give me the text.


Re: Score for sumo. - Duck - 21.02.2011

Edited my old thread, new question D:


Re: Score for sumo. - [ADC]Aldi96 - 09.04.2011

hi, can you give me the comlete sumo game please send me the link with PM....
Thank you!