18.06.2010, 20:17
1-I created a teleport to a derby, the player went into the Derby with a car.
I wonder how do I make the player die if he leaves the car.
Code I used.
2-The car of that derby is always invisivel.O within normal loads so that the car is invisible, how do I fix this?
I wonder how do I make the player die if he leaves the car.
Code I used.
Код:
if(strcmp(cmdtext, "/openderby", true) == 0) { if (PlayerInfo[playerid][pAdmin] >= 1) { if(!dbon) { dbon = true; for(new i; i < MAX_PLAYERS; i++) { GameTextForPlayer(i, "~g~type /goderby",1000,3); } } else if(dbon) { dbon = false; for(new i; i < MAX_PLAYERS; i++) { GameTextForPlayer(i, "~r~DERBY CLOSED",1000,3); } } } else { SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use this command !"); } } if(strcmp(cmdtext, "/GOderby", true) == 0) { if(!dbon) return SendClientMessage(playerid,0xAA3333AA,"The Event Derby is not released !"); SetPlayerInterior(playerid,15); { LastInterior = GetPlayerInterior(playerid); derbycar = CreateVehicle(444,-1378.8278,991.5210,1024.3533,0.0058,0,0, 600); PutPlayerInVehicle(playerid, derbycar, 0); ResetPlayerWeapons(playerid); SetPlayerHealth(playerid, 100.0); TogglePlayerControllable(playerid, 1); SetPlayerVirtualWorld(playerid, 0); GameTextForPlayer(playerid,"~r~Derby",2500,3); } return 1; }