23.01.2014, 19:57
Quote:
{ SetPVarInt(playerid, "TrackCar", 1); new zone[MAX_ZONE_NAME]; Get3DZone(carPos[0], carPos[1], carPos[2], zone, sizeof(zone)); format(string, sizeof(string), "Your vehicle is located in %s.", zone); SendClientMessageEx(playerid, COLOR_YELLOW, string); SetPlayerCheckpoint(playerid, carPos[0], carPos[1], carPos[2], 15.0); SendClientMessageEx(playerid, COLOR_WHITE, "Hint: Make your way to the checkpoint to find your vehicle!"); } { SetPVarInt(playerid, "TrackCar", 1); new zone[MAX_ZONE_NAME]; Get3DZone(carPos[0], carPos[1], carPos[2], zone, sizeof(zone)); format(string, sizeof(string), "Your vehicle is located in %s.", zone); SendClientMessageEx(playerid, COLOR_YELLOW, string); SetPlayerCheckpoint(playerid, carPos[0], carPos[1], carPos[2], 15.0); SendClientMessageEx(playerid, COLOR_WHITE, "Hint: Make your way to the checkpoint to find your car!"); } { SetPVarInt(playerid,"TrackCar",1); new zone[MAX_ZONE_NAME]; Get3DZone(carPosF[0], carPosF[1], carPosF[2], zone, sizeof(zone)); format(string, sizeof(string), "Your vehicle is located in %s.", zone); SendClientMessageEx(playerid, COLOR_YELLOW, string); SetPlayerCheckpoint(playerid, carPosF[0], carPosF[1], carPosF[2], 15.0); SendClientMessageEx(playerid, COLOR_WHITE, "HINT: Make your way to the checkpoint to find your car!"); } { SetPVarInt(playerid,"TrackCar",1); new zone[MAX_ZONE_NAME]; Get3DZone(carPosF[0], carPosF[1], carPosF[2], zone, sizeof(zone)); format(string, sizeof(string), "Your vehicle is located in %s.", zone); SendClientMessageEx(playerid, COLOR_YELLOW, string); SetPlayerCheckpoint(playerid, carPosF[0], carPosF[1], carPosF[2], 15.0); SendClientMessageEx(playerid, COLOR_WHITE, "HINT: Make your way to the checkpoint to find your car!"); } { new Float:X,Float:Y,Float:Z; GetPlayerPos(EMSAccepted[i], X, Y, Z); new zone[MAX_ZONE_NAME]; Get3DZone(X, Y, Z, zone, sizeof(zone)); format(string, sizeof(string), "Your patient is located in %s.", zone); SetPlayerCheckpoint(i, X, Y, Z, 5); } |