Players keep falling throw objects in cars.
#7

Код:
CMD:sumo(playerid,params[])
{
	if(InSumo[playerid] == 1)
	    return SendClientMessage(playerid, red, "[ERROR] You are already in Sumo!");
	if(SumoActive == 1)
	    return SendClientMessage(playerid, red, "[ERROR] Sumo is currently active! Try again later.");
	if(SumoActive == 0 && SumoStarting == 0) {
	    SumoStarting = 31;
	    switch(random(8)) {
	    	case 0: SumoVehicle = 502;
	    	case 1: SumoVehicle = 549;
	    	case 2: SumoVehicle = 424;
	    	case 3: SumoVehicle = 568;
	    	case 4: SumoVehicle = 556;
	    	case 5: SumoVehicle = 495;
	    	case 6: SumoVehicle = 451;
	    	case 7: SumoVehicle = 451;
	    }
	    SendClientMessageToAll(green, "(Sumo) Sumo is starting in 30 seconds. Type /sumo to join.");
	    SetTimer("SumoCountdown", 1000, false);
	}
	Teleported(playerid);
	ResetPlayerWeapons(playerid);
	TogglePlayerControllable(playerid, false);
	new Float: x, Float: y, Float: z, Float: a;
	SumoPos(x, y, z, a);
	Streamer_UpdateEx(playerid, x, y, z, SumoVW, 0);
	new v = CreateVehicle(SumoVehicle, x, y, z, a, -1, -1, 1);
	TempVeh[v] = 1;
	LinkVehicleToInterior(v, 0);
	SetVehicleVirtualWorld(v, SumoVW);
	SetPlayerVirtualWorld(playerid, SumoVW);
	SetPlayerInterior(playerid, 0);
	PutPlayerInVehicle(playerid, v, 0);
	SetCameraBehindPlayer(playerid);
	SetVehicleParamsEx(v, 1, 0, 0, 1, 0, 0, 0);
	SendClientMessage(playerid, yellow, "(Sumo) You have joined Sumo.");
	new string[128];
	format(string,sizeof(string),"(Sumo) %s has joined the Sumo.", PlayerName(playerid));
	MessageToSumoPlayers(yellow, string);
	InSumo[playerid] = 1;
	//TogglePlayerControllable(playerid, 0);
    //SetTimerEx("LoadingF", 30000, 0, "d", playerid);
    //GameTextForPlayer(playerid,"~w~Waiting for the Environments to Load.", 30000, 3);
	return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)