22.08.2013, 19:02
So, how to do that ?
forward CustomPickups(); |
public CustomPickups() { new Float:oldposx, Float:oldposy, Float:oldposz; new string[128]; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { GetPlayerPos(i, oldposx, oldposy, oldposz); new tmpcar = GetPlayerVehicleID(i); if (IsPlayerInRangeOfPoint(i, 2, 350.2929,178.6249,1014.1875) || IsPlayerInRangeOfPoint(i, 2, 350.6007, 177.6201, 1018.9766) || IsPlayerInRangeOfPoint(i, 2, 2487.8984,2397.2175,4.2109) || IsPlayerInRangeOfPoint(i, 2, 2488.5178,2397.2905,10.8203) || IsPlayerInRangeOfPoint(i, 2, 1283.9352,-788.6283,1084.0078) || IsPlayerInRangeOfPoint(i, 2, 2460.2573,2316.7065,91.6300) || IsPlayerInRangeOfPoint(i, 2, -1968.7019,324.7651,1552.1387)) { GameTextForPlayer(i, "~r~ tapez /ascenseur", 3000, 3); } } } } |