19.01.2015, 20:16
Код:
I changed the code a bit. new FLYVehicles[] = { 469, 447, 463 ,488 , 487 , 417, 425 ,497 , 460 , 520 , 519 , 553 , 577 ,592 ,593 , 513 ,512 ,511 ,476 , 548 }; stock IsVehicleFLYVehicle(vehicleid) { for(new v; v < 20; v++) { if(GetVehicleModel(vehicleid) == FLYVehicles[v]) return 1; } return 0; } if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { if(GetVehicleSpeed(GetPlayerVehicleID(playerid)) > 250 && !IsVehicleFLYVehicle(GetPlayerVehicleID(playerid))){ SendClientMessage(playerid, COLOR_YELLOW, "You have been banned from the server. Reason: Sobiet Speed Hack"); format(Jstring, 128, "Bot : %s has been Banned from the server. Reason: Speed Hack", GetName(playerid)); SendClientMessageToAll(COLOR_KRED, Jstring); SetTimerEx("BP",10,false,"d", playerid); return 1; }}