Score for sumo.
#1

Код:
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.
Reply
#2

Edited my old thread, new question D:
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)