18.05.2010, 17:48
Quote:
Originally Posted by Jefff
Search GetPlayerSpeed
Init Код:
SetTimer("deadtrip",1000,true); Код:
forward deadtrip(); public deadtrip() { new Speed,Model,ID; for(new d,g=GetMaxPlayers(); d<g; d++) if(IsPlayerConnected(d) && !IsPlayerNPC(d)) { if(!GetPlayerVehicleSeat(d)) { Speed = GetPlayerSpeed(d); ID = GetPlayerVehicleID(d); Model = GetVehicleModel(ID); if((Speed >= 40) && (Model == BUS_ID)) { SendClientMessage(d, COLOR_RED, "You reached deathspeed!, don't go any slower than 40 mph or you will DIE!"); } } } return true; } |
O and if you get lower than 40 mph on that speed you should blowup and if you get out you should die.